Re: [orca-list] (Slightly) O.T.: removing backup files.



On Thu, 27 Dec 2007, Kenny Hitt wrote:

rm -r *bak

would remove all files ending in bak in the current folder and all sub folders.

No, that would remove files and directories in the current directory with names ending in 'bak'.

You want find; something like
find -name '*bak' |xargs rm
would do what you want.  Type "man find" to get more of an explanation.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]