Search Results

Search: Posts Made By: Cablephish
3,833
Posted By Cablephish
Your last method at the very bottom proved to be...
Your last method at the very bottom proved to be useful. Thank you very much for your help :D
3,833
Posted By Cablephish
Variables within awk
Hi,

I'm having trouble getting awk to read a variable with spaces in it.


Input:
vendorName="Bob's Steakhouse"
awk -F":" '$2 ~ /'$vendorName'/ {print $1}' Purchases.dat

Error:
awk: $2 ~...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 08:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy