8 Jun
2007
8 Jun
'07
11:37 a.m.
Chris G <cl@isbd.net> wrote:
find info -name '*.txt' -exec echo `basename {} .txt` \;
I think the backticks are run by the shell before find. Try: find info -name '*.txt' | while read filename ; do mv -v "$filename" "${filename/%.txt/.rst}" done Hope that helps, -- MJ Ray - see/vidu http://mjr.towers.org.uk/email.html Experienced webmaster-developers for hire http://www.ttllp.co.uk/ Also: statistician, sysadmin, online shop builder, workers co-op. Writing on koha, debian, sat TV, Kewstoke http://mjr.towers.org.uk/