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 John Tel 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: *

  • Users: gsopitan
  • Content: Threads
  • Order by date
  1. gsopitan

    reading from a pipe

    I wrote a command that performs a series of function. The command works this way Case1: commandname option value $0 $1 $2 It should also works this way case 2: value | commandname option In case 1, I refer to "value" in my script using parameter $2. I am not sure how to...
  2. gsopitan

    Write to a text file in #!/bin/sh

    I am creating a command that does the following; commandname increment file num file contains an integer num is an integer I want my command to add the value of arg2 to the content arg1 I was thinking; #!/bin/sh for $3 in ![0-9] # I am not even sure this would work do echo 1>&2...
  3. gsopitan

    cat to awk question

    I have to files say file1 and file2. They both have the same fields. I want to append file1 to file2 and then run an awk script on it. I tried; cat file1 > file2 | awk -f scriptname.awk but it didn't work. Any ideas would be appreciated.
  4. gsopitan

    awk multiple input files question

    Please help me out with this; I am trying to run the simple one-liner on multiple input files awk -F '$2 ~ /^GOOG/ { print FILENAME, $1, $5 }' files The problem I am having is that I am trying to run this on about 500 files and I don't know how to do that without typing in each filename. Any...

Part and Inventory Search

Back
Top