Stumped! rm -r *.txt does not do it. Google foo has deserted me!
Cheers
Steve

find (directory) -type f -name *.txt -exec rm -f {} \;find (directory) -type f -name (regex)

find /home/molly3/temp -type f -name *.txt -exec rm -f {} \;
find: paths must precede expression: 2.txt
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]

find /home/molly3/temp -type f -name "*.txt" -exec rm -f {} \;


find dirname -name "*.txt" -print0 | xargs -0 rm



Users browsing this forum: No registered users and 4 guests