This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# script to collect input until the end then overwrite an existing file | |
# with the provided input. Intended to simplify this pattern: | |
# cat file | grep | awk | sed > temp | |
# rm file | |
# mv temp file | |
# into this pattern: | |
# cat file | grep | awk | sed | rewrite file | |
# need the file to overwrite |
OlderNewer