Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

2
  • works pretty neatly. I tried this and this worked too awk -v OFS="\t" '{print $1,$2,"'$a'"}' Commented Sep 11, 2019 at 16:10
  • 2
    @user3138373 Note that the code that you propose contains a code injection vulnerability. Take for example a='"; print "hi" >"newfile'. Running your code would create the file newfile with the string hi in it. Commented Sep 11, 2019 at 16:47