I am trying to go into a file that has already been set up as a variable, $FTPDB_FILE. Once in the file, I need to grep for the 8th field of each of the files listed. Once I grep that 8th field, the results can be three different things: ndm, ssl, or a no/yes which means the file was sent via...
I have created a script that goes into a particular file, XYZ and looks at the files listed within.
I.e.
FILE XYZ
#
#
#
File#1
File#2
File#3
The problem is I need to create a line within my script, so that all lines beginning with the symbol # will be ignored. Can anyone help me???? THANKS!!!!
I need to create an if statement which states that if the 9th field of a file is blank, to print the line "the following lines are incomplete."
Currently my script looks like this:
BEGIN{
FS=";"
}
NF !=9 {
printf("%s\n", "The following line is...
I need help entering a file so that the script I have will perform it's functionality. Currently, the script looks like this:
BEGIN{
FS=";"
}
NF !=9 {
printf("%s : %d\n", FILENAME, FNR);
}
vlad
#include<disclaimer.h>
I basically want to run the script and test a...
I am creating a script that will enter a file (XYZ) and verify that a list of files (ABC) within the file (XYZ) have a certain number of fields. Specifically, I am checking to see that the listed files have nine fields and are separated by a semi-colon ; delimiter. Here is what I have so far...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.