KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
A=(aaa bbb ccc) cat abc.txt | awk '{ print $1, ${A[$1]} }' I want to index an array element based on the $1, but the code above is not correct in awk syntax. Could someone help?
Tags (comma-separated)
Save Edits
Cancel