Re: Scripting names from a file

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

 



On Tue 28 September 2004 18:59, Patrick McSwiggen wrote:
> cat file_with_names | while read line ; do
> mv "$line" /dest/dir
> done
or, removing the 'spurious cat'...

while read filename; do 
mv $filename /dest/dir; 
done < file_with_filenames_in_it

:-)

Stuart

-- 
Stuart Sears RHCE, RHCX
Quidquid latine dictum sit, altum viditur


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux