aboutsummaryrefslogtreecommitdiff
path: root/bin/pp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/pp.sh')
-rw-r--r--bin/pp.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/pp.sh b/bin/pp.sh
new file mode 100644
index 00000000..b472a012
--- /dev/null
+++ b/bin/pp.sh
@@ -0,0 +1,8 @@
+# Print the full path to each argument; path need not exist
+for arg ; do
+ case $arg in
+ /*) path=$arg ;;
+ *) path=$PWD/$arg ;;
+ esac
+ printf '%s\n' "$path"
+done