Results 1 to 3 of 3

Thread: Awk

  1. #1
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts

    Awk

    anyone experienced in the use of AWk? If so, I'll post the full question

  2. #2
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    nevermind, worked it out

    Im Geeenus!

  3. #3
    Funking Prink! Raz316's Avatar
    Join Date
    Jul 2003
    Location
    Deal, Kent, UK
    Posts
    2,978
    Thanks
    130
    Thanked
    62 times in 52 posts
    Hmm it appears I underestimated my opponent :/

    Anyone know if there is a way of using the system() command properly in the print section of an awk script?

    e.g
    the input file's first line is "HELLO, THERE, FATTY, SOMETHING, ELSE"

    Im expecting...
    print $1, $2, $3, $4, system("echo TEST")
    to return
    HELLO THERE FATTY SOMETHING TEST

    but I get...
    TEST
    HELLO THERE FATTY SOMETHING 0

    when using system from the BEGIN section it works fine, but in the process part its screwed :/ any ideas?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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