Search Results

Search: Posts Made By: ckwan123
1,077
Posted By RudiC
Well, if it finds the search phrase, it set the...
Well, if it finds the search phrase, it set the boolean variable P to 1. P is evaluated, and if TRUE (or 1), the line is printed (awk default behaviour). Later, if an integer is found ($0+0 casts...
1,749
Posted By durden_tyler
I must say, that feature of sed is pretty...
I must say, that feature of sed is pretty impressive!
In Perl, you could use the "e" modifier with some Perl code in the replacement pattern that increments a counter and replaces conditionally. I...
1,749
Posted By RudiC
It's a substitute command, matching a...
It's a substitute command, matching a not-too-complicated regex:
sed -r 's/(\.[0-9][0-9])([^§])/\1§\2/2' file

sed -r # switching on ERE (extended regex) behaviour
' #...
Showing results 1 to 3 of 3

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