more cleanups

Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
This commit is contained in:
Nico Schottelius 2009-12-28 19:45:49 +01:00
commit 501aa0eff8
10 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1 @@
find ~/pub/hobby/tanzen/rnr/octopus_cup_2004/cd3 -type f -exec ../link.sh {} \;

8
old/audio-cd-dir.link.sh Executable file
View file

@ -0,0 +1,8 @@
#!/bin/sh
NUM=`cat COUNT`
NUM=$(($NUM+1))
ln -s "$1" audio_${NUM}.wav
echo $NUM > COUNT

View file

@ -0,0 +1,7 @@
#!/bin/sh
DIR=$(dirname $0)
chown -R :mpd "$DIR"
find "$DIR" -type d -exec chmod g=rx {} \;
find "$DIR" -type f -exec chmod g=r {} \;

View file

@ -0,0 +1,17 @@
#!/bin/sh
#set -x
#BASEDIR=$(dirname $0)
BASEDIR=$(pwd -P)
SDIR=$1
set -e
cd "$SDIR"
for file in *; do
SUBDIR=$(echo $file | sed 's;.*/\(.*\);\1;' | sed 's/^\(.\).*/\1/' | tr 'A-Z' 'a-z')
DDIR="$BASEDIR/$SUBDIR"
echo "Creating $DDIR"
mkdir -p "$DDIR"
tar c "$file" | ( cd "$DDIR"; tar xv )
done

View file

@ -0,0 +1,15 @@
#!/bin/sh
#set -x
BASEDIR=$(dirname $0)
FILE=$1
SUBDIR=$(echo $FILE | sed 's;.*/\(.*\);\1;' | sed 's/^\(.\).*/\1/' | tr 'A-Z' 'a-z')
DDIR="$BASEDIR/$SUBDIR"
set -e
echo "Creating $DDIR"
mkdir -p "$DDIR"
echo "Moving $FILE to $DDIR"
mv "$FILE" "$DDIR"

17
old/backup-smaller-dirs Executable file
View file

@ -0,0 +1,17 @@
i=0
dir=0
max_files_per_dir=100
mkdir -p $dir
for a in $@; do
if [ $i = $max_files_per_dir ]; then
((dir+=1))
mkdir -p $dir
i=0
fi
mv -i "$a" $dir
((i+=1))
done

3
old/lp Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cat > ~/mozilla.ps

6
old/myX Executable file
View file

@ -0,0 +1,6 @@
#!/bin/sh
X &
export DISPLAY=localhost:0 # use tcp/ip and not unix domain!
sleep 2;
blackbox

2
old/notizen Executable file
View file

@ -0,0 +1,2 @@
#/bin/sh
vi ~/.N0t.zen

3
old/stplay Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
export DISPLAY=:0.0
/usr/X11R6/bin/xmms -p