Search Results

Search: Posts Made By: abhijtr
4,524
Posted By yinyuemi
-F"_": using "_" as record separator variable ...
-F"_": using "_" as record separator variable
for (i=1;i<=NF;i++) :make a loop
if($i~/BL[0-9]+/) print $i : if $i contains patten "BL[0-9]+", which you want, then print it
4,524
Posted By yinyuemi
awk -F"_" '{for(i=1;i<=NF;i++) if($i~/BL[0-9]+/)...
awk -F"_" '{for(i=1;i<=NF;i++) if($i~/BL[0-9]+/) print $i}' file
281,441
Posted By Neo
Simple rules of the UNIX.COM forums:
RULES OF THE UNIX AND LINUX FORUMS

For the latest version of the community rules (the official community rules page), please visit here. (https://www.unix.com/misc.php?do=cfrules)


No flames,...
Showing results 1 to 3 of 3

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