Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-18-2004, 11:02 AM   #1
Registered: Dec 2002
Location: cincinnati
Posts: 87

Rep: Reputation: 15
Character replacement

I'm writing a script that has to find all files owned by a user and do a du on them. What I've got written so far is it does the find and outputs to a file. I was then going to cat out the file through du but spaces in file names is causing problems. Is there an easy way that all spaces could be replaced in the file?
Old 11-18-2004, 01:21 PM   #2
Senior Member
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
tr ' ' '%'


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Replacement command Spike5 Linux - General 3 09-20-2005 03:07 PM
VB Replacement for Linux? mhelliwell Linux - Software 3 02-26-2005 04:22 PM
replacement for x sneak General 2 07-05-2004 09:10 AM
WinImage replacement uniQ Linux - Software 0 03-14-2004 12:55 AM
o/s replacement... GT I.N.C Linux - General 7 07-06-2002 09:42 AM

All times are GMT -5. The time now is 07:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration