LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 11-18-2004, 10:02 AM   #1
SeT
Member
 
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
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Code:
tr ' ' '%'
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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


All times are GMT -5. The time now is 07:02 PM.

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