LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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,561

Rep: Reputation: 57
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,561

Original Poster
Rep: Reputation: 57
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration