Post your personal scripts here! I keep mine in /usr/local/scripts/, which is in my $PATH.
sizeof (obsoleted by fsize).
#!/bin/sh if [ -z $1 ]; then echo "Error: no files or directories specified." exit 1 fi for file; do if [ -d $file ]; then echo $(du -hs $file)$separator else echo $(ls -lh $file|cut -d\ -f5) \($file\)$separator fi; done
reset
#!/bin/sh cd&&clear
Be sure to alias reset=". reset" or the cd won't do anything.
I have exit aliased to reset for /dev/pts/1, so the console on my desktop doesn't close.
swapclear
#!/bin/sh su -c "/sbin/swapoff -a&&/sbin/swapon -a"
swap
#!/bin/sh cp $1 ~/.temp mv $2 $1 mv ~/.temp $2
inject
#!/bin/sh eject -t $1



















Joined: 2005-12-20