Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 7th August 2007, 05:33 PM
festhead Offline
Registered User
 
Join Date: Jun 2007
Posts: 14
spaces in output command

hi,

i want to use the output of locate (or find) in a program.

the problem i have is that the output is like this

$locate example
Code:
/home/user/example with spaces

which cannot be used (because it links to /home/user/example)


so is there a way to get this output:
Code:
/home/user/example\ with\ spaces
??

thx!
Reply With Quote
  #2  
Old 7th August 2007, 05:34 PM
festhead Offline
Registered User
 
Join Date: Jun 2007
Posts: 14
ps: renaming all files is not an option
Reply With Quote
  #3  
Old 7th August 2007, 08:29 PM
xDan89's Avatar
xDan89 Offline
Registered User
 
Join Date: Aug 2007
Posts: 35
I don't really know what you need it for but normally it should fix it by setting the variable under quotes("")

Beside with find you could use -exec that should be a very simple and much more efficient way of locating files and doing some commands on it.

Last edited by xDan89; 7th August 2007 at 08:31 PM.
Reply With Quote
  #4  
Old 7th August 2007, 09:59 PM
festhead Offline
Registered User
 
Join Date: Jun 2007
Posts: 14
building program to play songs in xmms that are selected by locate

the qoutes work!!
thx!
Reply With Quote
Reply

Tags
command, output, spaces

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not getting any output from this command.. nAuticA Using Fedora 3 8th September 2008 03:28 PM
Command display output on console and simultaneously save the command and its output satimis Linux Chat 10 1st August 2008 03:02 AM
Redirecting output of cat command to read command bhav_shah82 Programming & Packaging 19 19th June 2007 08:06 AM
Redirecting output of cat command to read command bhav_shah82 Using Fedora 1 18th June 2007 12:31 PM
What does the output of the command time mean? lch3920126 Using Fedora 1 19th September 2006 11:14 AM


Current GMT-time: 20:07 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat