Please, use [CODE][/CODE] tags, not tags for code and listings
Did you read the explanation in your other thread on how the quotes work?
a. I try to attention use CODE tags.Sometimes I can make mistake like everybody.Couldnt it?
b. Explanation isnt unneccessary for my solution.
Please look at the page sed.sf.net - The SED $HOME
Thanks @ygemici
Regards
edit by bakunin: actually pludi wasn't talking to you but to sugan, so your complaint looks a bit off the mark. Furthermore, it might be my general dullness, but i can't discern any meaningful from the sentence "explanation isn't unnecessary for my solution". Care to explain that? I also don't understand how the link to the sourceforge project is going to help the thread opener.
I'll give you the benefit of doubt that maybe your post was intended for another thread, where it might make perfect sense and was just erroneously posted here. Otherwise i would have to classify it as bordering on spam. Thanks for clarifying.
---------- Post updated 04-02-10 at 11:39 AM ---------- Previous update was 04-01-10 at 05:39 PM ----------
Quote:
Originally Posted by ygemici
a. I try to attention use CODE tags.Sometimes I can make mistake like everybody.Couldnt it?
b. Explanation isnt unneccessary for my solution.
Please look at the page sed.sf.net - The SED $HOME
Thanks @ygemici
Regards
edit by bakunin: actually pludi wasn't talking to you but to sugan, so your complaint looks a bit off the mark. Furthermore, it might be my general dullness, but i can't discern any meaningful from the sentence "explanation isn't unnecessary for my solution". Care to explain that? I also don't understand how the link to the sourceforge project is going to help the thread opener.
I'll give you the benefit of doubt that maybe your post was intended for another thread, where it might make perfect sense and was just erroneously posted here. Otherwise i would have to classify it as bordering on spam. Thanks for clarifying.
Dear bakunin
I am in server world from fifteen years.I am computer and system engineer.
I dont understand to your approach to me?
I dont have to explain anybody especially to suspicious approach persons.
Anyway I think the other people wants to see my explanation :
${linenumber} --> value of linenumber same as $linenumber and i use to {} for sed i option to isolated from the expanded shell variable that is only differerence .. I hope my explanation is enough.. Thanks for your precision Have a nice day Regards
Hi I'm new to sed, and need to add characters into a specific location of a file, the fileds are tab seperated.
text <tab> <tab> text <tab> text EOL
I need to add more characters to the line to look like this:
text <tab> <tab> newtext <tab> text <tab> text EOL
Any ideas? (2 Replies)
sed '1r file.txt' <source.txt >desti.txt
This example will insert 'file.txt' between line 1 and 2 of source.txt.
sed '0r file.txt' <source.txt >desti.txt
gives an error message.
Does anyone know how 'sed' can insert 'file.txt' before the first line of source.txt? (18 Replies)
Just posted on another fellow's question using ed, but I wanted to know about doing it with sed on Unix. For example - I have a file of an unknown length, but I want to add a line after the shell declaration (Line 2). If possible, I'd like the example to be able to just substitute in a number and... (2 Replies)
Hi all,
I have a file called "text.cpp" with the first line of "1"
afterwards I tried in Ubuntu to type the following
sed '12iasdasdasdasdsad' test.cpp > output.txt
however when I tried to see the result of output.txt
#cat output.txt
1
why is the line 12 is not updated to the... (6 Replies)
Hello.
I have a config file (/etc/my_config_file) which may content :
#
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200
# network interfaces to serve, comma delimited
network_interface=eth0
# set this to the directory you want scanned.
# * if have multiple... (6 Replies)
Thanks to help from Don Cragun in post 302924174, I'm off and getting into trouble on my own (finally) with sed.
Here is my goal - insert \\r\n at the 60th character on each line and then every 76th character thereafter:
Input:... (3 Replies)
Hi
I am trying to run a sed command within a script..unfortunately it wasn't written on Solaris so doesn't work. Can anyone help with the correct coding please?
It is:
sed -i '1i ROWID;ORDER_ID;JOB_NAME;ORDER_TABLE' ${OUTFILE} (4 Replies)
Hi,
$ cat f1
My name is Bruce and my surname is
I want to use SED to find “Bruce” and then append “ Lee” to the end of the line in which “Bruce” is found
Then a more tricky one…. I want to INSERT ….a string… in to a line in which I find sometihng. So example
$ cat f2
My name is... (9 Replies)