Save modifications in place with NON GNU awk
问题 I have come across a question(on SO itself) where OP has to do edit and save operation into Input_file(s) itself. I know for a single Input_file we could do following: awk '{print "test here..new line for saving.."}' Input_file > temp && mv temp Input_file Now lets say we need to make changes in same kind of format of files(assume .txt here). What I have tried/thought for this problem: Its approach is going through a for loop of .txt files and calling single awk is a painful and NOT