Search Results

Search: Posts Made By: sri.phani
2,555
Posted By sri.phani
How to pass command line arguments to awk program?
#!/bin/awk -f
BEGIN {
FS=":";
}
{
if ( $7 == "" ) {
print $1 ": no password!";
}
}




I want to execute this program for a particular user to...
2,207
Posted By sri.phani
My understanding goes $1 $2 ... representing the commandline arguments
My understanding goes that when I use the $1 ... in the code, the values for thiese var's / parameters ($1...) should be given as arguments while running the program

and @Kumaran , I am in the...
2,207
Posted By sri.phani
awk command line arguments not taking
# more minusf.awk

#!/bin/awk -f
BEGIN {
FS=":";
}
{
if ( $2 == "" ) {
print $1 ": no password!";
}
}





# ./minusf.awk aa aa aa aa
awk:...
Showing results 1 to 3 of 3

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