Is this possible?
I want to have my awk script check to make sure the input file is a text file? I've been having a heck of a time trying to do this. I've been trying variations on the system command such as:
(system("file " FILENAME)==*"text"*)
to no avail. Any ideas?
Thanks in advance!
Scott
I want to have my awk script check to make sure the input file is a text file? I've been having a heck of a time trying to do this. I've been trying variations on the system command such as:
(system("file " FILENAME)==*"text"*)
to no avail. Any ideas?
Thanks in advance!
Scott