Search Results

Search: Posts Made By: Pradhikshan
4,888
Posted By MadeInGermany
does only find lines that entirely match the...
does only find lines that entirely match the given test test test.
More close to the requirement is
sed 's/.*string within the line.*/My new line/'Or
sed '/string within the line/ s/.*/My new...
4,888
Posted By RavinderSingh13
Hello Pradhikshan, Following may help you in...
Hello Pradhikshan,

Following may help you in same, here I have taken an example of *.txt files, you can make it as per your requirement.

for i in *.txt;
do
sed -i 's/^test test test$/"My...
4,888
Posted By sea
Hi Pradhikshan Any attempts from your side...
Hi Pradhikshan

Any attempts from your side yet?
If not, to get you started, start playing around with these: (please do required changes yourself, eg: Desktop)

I'm not familiar with ksh, but...
14,267
Posted By Don Cragun
It is always a good idea to tell us what...
It is always a good idea to tell us what operating system and shell you're using when asking questions here. With a standards conforming version of sed, you weren't far off with your sed command:...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 06:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy