Skip to content

Instantly share code, notes, and snippets.

@savaged
Last active March 7, 2023 10:00
Show Gist options
  • Save savaged/d9c3915730807def2211ecbb6910db95 to your computer and use it in GitHub Desktop.
Save savaged/d9c3915730807def2211ecbb6910db95 to your computer and use it in GitHub Desktop.
Bash fun echoing back the command entered but with the full path
#!/usr/bin/sh
echo $(pwd)$(echo $0 | sed -r 's/^\.(\/[a-zA-Z]+[\.[a-z]*]?)$/\1/g') $1 $2 $3 $4 $5 $6 $7 $8 $9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment