Using awk, how can i redirect the data to all files in the directory?
like ,lets say i want to redirect to file.txt i will do:
echo "abc"|awk '{print >"file.txt"}'
how can i acheive the same thing but to multiple files(in fact all files) in the directory. there are some .txt files in teh cirrent directory. so i want to redirect abc to all the files in the current directory which have an extension of .txt.
echo abc|awk '{print |"tee files"}'