Search Results

Search: Posts Made By: vanand420
7,352
Posted By vanand420
How it has returned what is expected. Using...
How it has returned what is expected. Using CYGWIN_NT-5.1

awk '{if (toupper($1) ~ /A/) print $0}' inv

Input file :

$ cat inv

Jan 13 25 15 115
Feb 15 32 24 226
Mar 15 24 34 228...
7,352
Posted By vanand420
My concern is that in first case, it should pick...
My concern is that in first case, it should pick "A" only not "a" irrespective of the position.

$ awk '{if (toupper($1) ~ /A/) print $0}' inv -- Why this output
Jan 13 25 15 115
Mar 15 24 ...
7,352
Posted By vanand420
Awk Help - toupper/tolower
Hi,

I am learning awk and faced few queries. Kindly suggest on the same. Where it is wrong.

$ awk '{if (toupper($1) ~ /a/) print $0}' inv

$ awk '{if (toupper($1) ~ /A/) print $0}' inv --...
Showing results 1 to 3 of 3

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