Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. ryanildo

    I am trying to go into a file that

    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...
  2. ryanildo

    Sed and Awk command for ignoring a specific character.

    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!!!!
  3. ryanildo

    Creating an if statement using awk and sed

    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...
  4. ryanildo

    Accessing a file using awk and sed

    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=&quot;;&quot; } NF !=9 { printf(&quot;%s : %d\n&quot;, FILENAME, FNR); } vlad #include<disclaimer.h> I basically want to run the script and test a...
  5. ryanildo

    script using awk and sed

    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...

Part and Inventory Search

Back
Top