Scripting Examples:
- Unix Philosophy (at least the part that pertains to scripting):
- make each program do one thing well.
- expect the output of one program to become the input of another.
- visit the basics of unix philosophy to learn more.
- sed:
change all of the dates in a group of files$ sed -i.bak "s/05-05-2005/05-06-2005" *.dat
- find:
change the permissions of all mp3 files:$ find -iname "*~" -exec "rm {}" \;
compress all files larger than 30MB:
$ find -size +30000k -exec "bzip2 {}" \;
![[logo]](logo.png)