Fedora Linux Support Community & Resources Center
  #16  
Old 4th January 2008, 02:45 PM
cable_txg Offline
Registered User
 
Join Date: Jan 2008
Posts: 302
Razza, the delineator makes a difference with sed. The code below or the first few lines from Imo would still work in a script with directory paths included:

input_dir_root='/data/wav'
output_dir_root='/data/mp3'
LINE='/hello/you/data/wav'

echo $LINE |sed "s#$input_dir_root#$output_dir_root#"

If you replace # with / , the above would fail as sed would be confused with where the command ends. Test it out on your script and let us know...
:-D
Reply With Quote
Reply

Tags
input or output, sed, varibles

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
input/output error talkstock888 Hardware & Laptops 4 17th May 2006 10:54 PM
Input/Output error after 'lvreduce' chillz Using Fedora 6 11th November 2005 05:37 AM
cpio input/output error mattma Using Fedora 3 17th November 2004 03:19 PM


Current GMT-time: 13:22 (Sunday, 20-04-2014)

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