Skip to content

Instantly share code, notes, and snippets.

@BramEsposito
Created February 13, 2017 21:49
Show Gist options
  • Save BramEsposito/380665ba79e407318d59f5a43e6c005f to your computer and use it in GitHub Desktop.
Save BramEsposito/380665ba79e407318d59f5a43e6c005f to your computer and use it in GitHub Desktop.
Copy next line to clipboard. Put this in an Alfred action and assign a shortcut.
FILE="/Users/user/wherever/you put/your files/file.txt"
head -n 1 "$FILE" | pbcopy
echo "$(sed '1d' "$FILE")\n" > "$FILE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment