If I do understand what you want, than your script file should look like this:
#! /bin/bash rm -r /home/bil/mo/pdf.ico rm -r /home/bil/mo/*.bak rm -r /home/bil/mo/*~ I don't know what the ~ stands for in your script. Be carefull with the -r option! :-) Save your script with e.g. morm execute (to make your script executable) > chmod u+x morm Start the script with: > ./morm =@@i bill lam schreef: > Thanks I had read the man page, but can not figure out how to do it. > FYI the /s switch is sub-directory so that it will delete all matching > files under that folder recursively but will not delete any folder. > > Arie Groeneveld wrote: >> The command is: rm >> >> Try rm --help for options >> >> >> =@@i >> >> >> bill lam schreef: >>> This is a newbie question. I have a batch file in dos that deletes >>> unwanted files like this >>> >>> del c:\public\mo\pdf.ico/s >>> del c:\public\mo\*.bak/s >>> del c:\public\mo\*~/s >>> >>> I would like know the equivalent linux script to delete similar files >>> under directory /home/bill/mo >>> >>> thank you in advance. >>> ---------------------------------------------------------------------- >>> For information about J forums see http://www.jsoftware.com/forums.htm >>> >>> >> >> ---------------------------------------------------------------------- >> For information about J forums see http://www.jsoftware.com/forums.htm >> > > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
