Help answer threads with 0 replies.
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, 10: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, 12: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 02:07 PM
VB Replacement for Linux? mhelliwell Linux - Software 3 02-26-2005 03:22 PM
replacement for x sneak General 2 07-05-2004 08:10 AM
WinImage replacement uniQ Linux - Software 0 03-13-2004 11:55 PM
o/s replacement... GT I.N.C Linux - General 7 07-06-2002 08:42 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:01 PM.

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