Search Results

Search: Posts Made By: ganesnar
3,117
Posted By ganesnar
Thanks for the script. It worked!
Thanks for the script. It worked!
3,117
Posted By ganesnar
Help with the For loop shell script
Hi,

I have multiple files in a directory. Each file will have a header.I have to check if any of the files has 0 rows other than the header then I have to delete the files.
Here “ Empty file” in...
Forum: AIX 09-17-2010
5,770
Posted By ganesnar
Thank you. awk -F',' \ ' { if (...
Thank you.

awk -F',' \
' { if ( substr($7,2,2) == "01" || $4 == "01" ) { print $0; } }' test.txt
This works.
Forum: AIX 09-16-2010
5,770
Posted By ganesnar
awk -F"," ' { if (substr($4,2,2))= "01" printf $0...
awk -F"," ' { if (substr($4,2,2))= "01" printf $0 }' test.txt

It still gives me the error
The error context is
{ if >>> (substr($4,2,2))= <<< "01" printf $0 }
awk: The...
Forum: AIX 09-16-2010
5,770
Posted By ganesnar
The data in my test file looks like this example...
The data in my test file looks like this example below

"abcd","1234","001245","01","956769","","",""
"abcd","1234","001245","02","956769","",""
"abcd","1234","001245","03","956769","N","",""...
Forum: AIX 09-16-2010
5,770
Posted By ganesnar
Help with syntax using AWK
I have a file which is comma separated and has quotes. I can use this command and
awk -F"," '{ if ($4=="01" print $0 }' test.txt
But this doesn't fetch me the data.since it has quotes.
If the...
1,426
Posted By ganesnar
Help with the Awk Command
I have a file which is comma separated and has quotes. I can use this command and
awk -F"," '{ if ($4=="01" print $0 }' test.txt
But this doesn't fetch me the data.since it has quotes.
If the...
1,305
Posted By ganesnar
Help with the Command
I have a file which is comma separated and has quotes. I can use this command and
awk -F"," '{ if ($4=="01" print $0 }' test.txt
But this doesn't fetch me the data.since it has quotes.
If the...
Showing results 1 to 8 of 8

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