Results 1 to 1 of 1
So I am a newbie obviously but I need some help.
I am trying to run a script to check that the number of fields in a database is equal ...
- 08-01-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 1
Using AWK in a bash script
So I am a newbie obviously but I need some help.
I am trying to run a script to check that the number of fields in a database is equal to 4, if not they should try again and run an appropriate database file. The fields are separated by a semi colon. I've tried a lot of things, this what I'm trying to fix
awk -F':' { if (NF != 4){
zenity --info --text "The file pathname \"$2\" is not a four field colon separated database file.\n\nClick OK to exit, and re-run this program."
}
} \"$2\"


Reply With Quote