Search Results

Search: Posts Made By: knoxo
10,244
Posted By knoxo
Thank you very much era and aigles, now i think i...
Thank you very much era and aigles, now i think i have something to play around with for the rest of the night. :)
knoxo
10,244
Posted By knoxo
hello Jean-Pierre, edit: Now it works,...
hello Jean-Pierre,

edit:

Now it works, i had additional blanks around the 'A' and 'bar', which is different from ' A ' etc so no math was found.
How could i make it insensitive to leading or...
10,244
Posted By knoxo
Great, that works! 'A' and 'B' were just...
Great, that works!
'A' and 'B' were just examples, they actually correspond to longer strings...

Perhaps i should change the syntax to prevent such kind of matches if the search text appears...
10,244
Posted By knoxo
Thank you for your reply, but i forgot to mention...
Thank you for your reply, but i forgot to mention that i can not rely on the order of 'A' and 'bar'. i just can assume that they appear anywhere in that line.
So perhaps a modification of this...
10,244
Posted By knoxo
search and replace with restriction (awk, sed)
Hello,
i have a file like that

foo A new
bar A new
bar B new

I need to replace 'new' with 'done',
but only in lines containing 'bar' AND 'A'.

output file should then become

foo A new...
6,783
Posted By knoxo
insert text into column
Hello! I have a text file containing

some text : : : bla
other text : : : bla
any text : : : bla

containing 3 columns separated by the ':' sign.
Now i want to insert 'this' in the 2nd line...
Showing results 1 to 6 of 6

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