Search Results

Search: Posts Made By: kumarn
2,933
Posted By kumarn
Remove/Find files based on position pattern
Hi All,

Please help me to find or remove files based on position based search pattern.

file1.txt:
aaabbbccc
dddeeefff
iiijjjkkk

file2.txt:
lllmmmnnn
ooopppqqq
rrrsssttt

file3.txt:...
67,777
Posted By kumarn
thank you all
All solutions really worked great. Now I have a choice. Thanks. Appreciate your help.

awk '/^B/{close("file"f);f++}{print $0 > "file"f}' input.txt

perl -n -e '/^B/ and open FH, ">output_".$n++;...
67,777
Posted By kumarn
Split a file based on pattern in awk, grep, sed or perl
Hi All,

Can someone please help me write a script for the following requirement in awk, grep, sed or perl.

Buuuu xxx bbb
Kmmmm rrr ssss uuuu
Kwwww zzzz ccc
Roooowwww eeee
Bxxxx jjjj dddd...
Showing results 1 to 3 of 3

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