Posts Tagged ‘ folder ’

Rename all files in a folder from upper to lower case.

February 12, 2010
By

Sometimes is needed to have all files in a folder in the same case. Here’s a small script to rename all files in the folder to lower case: View Code BASH1 for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done

Read more »

Checking directory sizes from the BASH prompt

January 18, 2010
By
bash_script

The command ls can be made to show directories and permission but it will not display directory sizes. Then it’s time for other commands. For example on my hosting account there is no file manager installed and evidently x and kde is missing too so, to find out directory sizes I can use the...

Read more »

Follow Me

Subscribe via RSS