Search Results

Search: Posts Made By: asutoshch
1,762
Posted By yazu
sed '/ABC/ { h s/^/#/p x s/ABC/XYZ/g }'...
sed '/ABC/ {
h
s/^/#/p
x
s/ABC/XYZ/g
}' INPUTFILE
2,172
Posted By ctsgnb
Simple & quite generic : sed...
Simple & quite generic :

sed '/^3/s/........../ /13' infile

awk '/^3/{sub(substr($0,121,10)," ")}1' infile

Use nawk or /usr/xpg4/bin/awk instead of the simple 'awk' if...
Showing results 1 to 2 of 2

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