To lowercase files in current $PWD #!/bin/sh for x in * do newx=`echo $x | tr “[:upper:]” “[:lower:]”;` mv “$x” “$newx” echo “$x –> $newx” done
Bookmark to:

Tar is a good tool for moving files because it retains symbolic links and user/group permissions properly. A simple ‘Tar Pipe’ can be done to send and get files: send:
tar cf - myfiles | ssh remotehost ” ( cd /destination/path ; tar xf - ) ”
get:
ssh remotehost “( cd /source/path; tar […]

If your file permissions ever get messed up (like mine just did), it is possible to recursively set some permissions on all files, then different permissions to all directories, with:
chmod 664 `find * -type f -print0`
chmod 775 `find * -type d -print0` Keep in mind that chmod -R is […]

If you ever have to delete many, many files but rm returns a “too many arguments” error, use find and xargs to save the day: find . | grep ‘your_filename_filter’ | xargs rm -f
Of course, you can omit piping through grep if you just want to erase the entire directory
Bookmark to:

chmod -R a+rX dir will make dir and every file and directory in the tree below it readable by all (from the +r) and executable if and only if it is a directory or already executable by some user (from the +X).
Bookmark to:

Yeah SEO Friendly Web Directory | Directory Central | Directory Dot | My SEO Directory | The SEO Directory | Web SEO Directory | SEO Directory