Search Results

Search: Posts Made By: Aia
3,782
Posted By Aia
If you are using Python already why don't you do...
If you are using Python already why don't you do it on it?

import re

string1 = re.compile('@')
string2 = re.compile('testtt')
with open("test.file") as f:
for line in f:
if...
3,782
Posted By Aia
Alternatively: perl -ne '/testtt/ and print...
Alternatively:

perl -ne '/testtt/ and print "$_$keep"; $keep=$_ if /@/' test.file
5 testtt 11223344
1 His email address alfredo@alfredo.ru
14 testtt 55667788
8 His...
Showing results 1 to 2 of 2

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