Search Results

Search: Posts Made By: RudiC
4,316
Posted By RudiC
Listen, this is getting lengthy. There's no | ...
Listen, this is getting lengthy. There's no | delimiter as indicated in post#15. Using the default field separators, field 12 isawk '{print $12}' file
d
d
d
d
d
d
d
d
d
d
d

Unless you...
4,316
Posted By RudiC
Without a decent real life sample I can't help...
Without a decent real life sample I can't help further.
4,316
Posted By RudiC
PLEASE consider giving a clear, crisp, and...
PLEASE consider giving a clear, crisp, and detailed specification in the very first post!
Try egrep "^([^ ]+ +){11}2015.(11|12)|POST" file
4,316
Posted By RudiC
Where did you specify that we're dealing with...
Where did you specify that we're dealing with field 12?
4,316
Posted By RudiC
Some creativity with the regex might yield the...
Some creativity with the regex might yield the correct result for column 1:egrep "^2015.(11|12)|POST" file
4,316
Posted By RudiC
For exactly your sample and request, this might...
For exactly your sample and request, this might do:egrep "2015.(09|10)|POST" file
POST_DATE CHECK_NUMBER TYPE LOGIN_NAME
2015.09.09 XXXXXXXXXX mark XXXXXXXXXX
2015.09.09 ...
4,316
Posted By RudiC
Why all that piping? Did you know that (e)grep by...
Why all that piping? Did you know that (e)grep by default prints the entire line if either pattern is matched?
Showing results 1 to 7 of 7

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