The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 04-22-2009
Calypso Calypso is offline
Registered User
  
 

Join Date: Apr 2009
Posts: 29
@cfajohnson

Im afraid it still doesnt seem to work, now the script takes out all spaces so when i do

Code:
find $dir -name "*.txt" | while IFS= read -r file; do
  mv -i $file `echo file | sed 's/ //g'`
done
i just get the following errors
/etc/file: No such file or directory
name: No such file or directory