---------- Post updated 06-04-13 at 03:44 AM ---------- Previous update was 06-03-13 at 11:06 PM ----------
bbaumg02,
Here how it ll look like:
Hope this is what you were looking for.
Hi rveri,
If that is what is wanted, why make it so complex? Why not just use something like:
I don't see the need for ed or sed if this is the desired output.
This is likely to be a dumb one.
How can I use sed to substitute string occurances having it read from an input file and write to this very same file ?
I have a file with lots of occurances of '2006', I want to change it to '2007', but I'd like these changes to be saved on the input file.
... (5 Replies)
hi
iam facing problem regarding sed function. give me reply
with example of sed function. and what to meanings of $# and @
in scripting
please as reply as soon as possible (1 Reply)
Hi
I need some help on SED command
I am writing a shell script which does the following:
1. Read one line at a time from a file abc.txt which has millions of lines
2. Prefix each line read with some text "
3. Post fix each line read with a quote "
4. Write the new modified... (11 Replies)
Hey there
I have two commands to get exactly the data i want but.. i want to write them into a file side by side and in the same order so that they always match. So what i'm hoping to learn from this thread is some of the different ways one could take the output of grepped data and write them in... (7 Replies)
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
I'm an infrequent user of sed. I searched this and other forums and read quite a bit of the O'Reilly book for an answer without luck.
In my script I want sed to write the remainder of the input file and quit if it matches a pattern.
e.g
/Google/
Does anyone have an answer?
thank. (5 Replies)
Hi all .... vexing problem here ...
I am using sed to replace some special characters in a .txt file:
sed -e 's/_<ED>_/_355_/g;s/_<F3>_/_363_/g;s/_<E1>_/_341_/g' filename.txt
This command replaces <ED> with í , <F3> with ó and <E1> with á.
When I run the command to standard output, it works... (1 Reply)
Hi There,
I am trying to load data from a csv file into a DB during our DB migration phase. I am successfully able export all data into a .csv file but those have to rewritten in terms insert statement which will allow for further population of same data in different DB
My exiting csv record... (6 Replies)
Hi ,
In file first line start with "",when trying to remove using sed i am getting the below error .Please advise
sed -e 's///g' -e 's/$]//g' segment1.txt >>segment_m1
sed: couldn't write 1378 items to stdout: No space left on device
Thanks,
Mohan (1 Reply)
Hi,
I wish insert a line into a file, I created it with :
#--------------------------------------------------------------
# The loopback network interface
#--------------------------------------------------------------
auto lo
iface lo inet loopback
... (7 Replies)