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.
- 01-15-2003 #1Just 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
- 01-15-2003 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Basically, it shouldn't be harder than this:
echo "$VARIABLE" | awk


Reply With Quote
