Last active
March 7, 2023 10:00
-
-
Save savaged/d9c3915730807def2211ecbb6910db95 to your computer and use it in GitHub Desktop.
Bash fun echoing back the command entered but with the full path
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
#!/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