Created
March 1, 2016 14:33
-
-
Save GiovanniBalestrieri/26658aefc875c2579e9b to your computer and use it in GitHub Desktop.
Bash Script to append string to the last modified file
This file contains hidden or 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 | |
ls -t | head -1 | xargs sed 's/$/,yes/' -i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment