Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2011
    Posts
    5

    Unanswered: There's an awk in my grep, and it wont let me out.

    Any clue why,

    grep -B1 "`awk '{print $10}' FILEA`" FILEB

    would produce the right output, stand alone and when run in a script, but when in a script results in a;

    grep: (*data in field 10): No such file or directory

    error? Even though it produces the right output, it ends aborts the scripts after the error....

    suggestions?

  2. #2
    Join Date
    May 2005
    Location
    South Africa
    Posts
    1,365
    Provided Answers: 1
    I am unable to recreate your problem on my system

  3. #3
    Join Date
    Jan 2011
    Posts
    5

    Hmmm

    I'm running a bash terminal in OSX, but the script it's in is csh.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •