Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

script inquiry?? looking for filename

Status
Not open for further replies.

bonsky

MIS
Joined
Apr 23, 2001
Messages
280
Location
US
Gurus,
just want to ask, for scripting. I need to find the files in a directory with filename that has "space" in it and then move it to another directory .. thanks alot for your help in advance..

 
Something like:

find /pathtosearch -name '* *' -exec mv {} /newlocation \;

might work. In general, I'd strongly advise against creating filenames with spaces in any unix flavour, but that's just my opinion, of course.
 
thanks alot! i will try..
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top