Search Results

Search: Posts Made By: srikanth38
17,461
Posted By srikanth38
It should be as follows: awk '$3=="A";$3=="B"...
It should be as follows:
awk '$3=="A";$3=="B" {print $0}' file.txt

Regards,
Srikanth
1,610
Posted By srikanth38
I think you can use below one to get required...
I think you can use below one to get required output.
awk '{if(NF==2) print $0}' <file_name>

awk '{if(NF!=2) print $0}' <file_name>

Regards,
Srikanth
1,610
Posted By srikanth38
Hey, Could you please read you file using...
Hey,

Could you please read you file using while loop, below code is working.

while read linecont
do
line1=`echo $linecont|awk -F ' ' '{print $3;}'`
if [ "$line1" = "" ]
then
echo...
Showing results 1 to 3 of 3

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