Search Results

Search: Posts Made By: tinman47
16,124
Posted By ygemici
for any escape code at 3rd line, 2nd column.. #...
for any escape code at 3rd line, 2nd column..
# sed '3s|\E\[[0-9][0-9]*;[0-9][0-9]*m|E[5;47m|2' infile
\E[0;40m \E[0;40m \E[0;40m \E[0;40m
\E[0;40m \E[0;40m \E[0;40m \E[0;40m
\E[0;40m \E[5;47m...
16,124
Posted By Scrutinizer
sed '3s/[^ ]*/\\E[5;47m/2' infile sed "3s/[^...
sed '3s/[^ ]*/\\E[5;47m/2' infile
sed "3s/[^ ]*/\\\E[5;47m/2" infile
9,388
Posted By ahamed101
row=3;col=5; sed "$row s/\(..\)40m /\145m...
row=3;col=5;
sed "$row s/\(..\)40m /\145m /$col" input_file


--ahamed
9,388
Posted By Scrutinizer
Which would mean the fourth column if all columns...
Which would mean the fourth column if all columns are only one character wide.
9,388
Posted By ahamed101
oh man!!!... ;) --ahamed
oh man!!!... ;)

--ahamed
Showing results 1 to 5 of 5

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