LinuxQuestions.org
Visit Jeremy's Blog.
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
 
Search this Thread
Old 03-01-2008, 08:45 AM   #1
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Rep: Reputation: 51
bash: how to replace strings of a file with some " chars ?


Hello,
if you would like to use rpl to replace the content of it with those "
there is no way

Is there a way that we do :
rpl 'lkjkljkl"kljljkl' stringtoreplace myfile.txt

thanks for any ideas !
 
Old 03-01-2008, 09:10 AM   #2
frenchn00b
Senior Member
 
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,546

Original Poster
Rep: Reputation: 51
Quote:
Originally Posted by frenchn00b View Post
Hello,
if you would like to use rpl to replace the content of it with those "
there is no way

Is there a way that we do :
rpl 'lkjkljkl"kljljkl' stringtoreplace myfile.txt

thanks for any ideas !
rpl 'lkjkljkl"kljljkl' stringtoreplace myfile.txt
works !!
I did sthg wrong

SOLVED with apt-get install rpl
and using
'text"text'

Last edited by frenchn00b; 03-02-2008 at 12:45 AM.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write a bash script to replace all "KH" to "K" in file ABC??? cqmyg5 Slackware 4 07-24-2007 09:00 AM
Bash scripting. Strip chars from file names, etc. mooreted Programming 7 02-11-2007 08:52 PM
Is it really worth it to use chars, especialy since I can strings? RHLinuxGUY Programming 6 07-23-2006 12:52 PM
Bash scripting: column-ize file of varying length strings Quantum0726 Programming 4 08-13-2005 06:19 PM
Fun with strings & chars in C Scrag Programming 4 05-19-2004 03:03 PM


All times are GMT -5. The time now is 01:57 AM.

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