|
That I did not know - thank you. We here still think of awk as fundamentally different from other pipeline facilities such as tr, sed, sort, uniq, and so on, but I can see why it could, perhaps should, be though of as being "shell". I guess I was triggered by the fact that the proposed shell solution is: * not on a command line (although it could be), * is significantly longer than the original command line solution, and * gives a different result. But you're right, it's shell. I might, however, given my background, and remembering as I do its first introduction, always have trouble thinking of it as such. |
If you consider awk "not-shell" because it's an entire language, then it's really inconsistent to consider sed "shell". sed is a stream programming language. For example, this is a Sudoku solver written in sed: http://sed.sourceforge.net/local/games/sedoku.sed.html