Find the answer to your Linux question:
Results 1 to 2 of 2
Is there any way to use text in a varable for awk instead of a text file? I've been looking around google for a bit and haven't found any way ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2003
    Location
    texas
    Posts
    5

    (Bash) Awk question


    Is there any way to use text in a varable for awk instead of a text file? I've been looking around google for a bit and haven't found any way how.

    Or does anybody know a workaround? basically I want to extract data from a mysql query (tab seperated) text, that's stored in a shell varible

    thx in advance

  2. #2
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    Basically, it shouldn't be harder than this:
    echo "$VARIABLE" | awk

Posting Permissions

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