summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]readlink7
1 files changed, 7 insertions, 0 deletions
diff --git a/readlink b/readlink
index e69de29..5bf2be5 100644..100755
--- a/readlink
+++ b/readlink
@@ -0,0 +1,7 @@
+readlink() {
+ ls -l "$1" | awk -F' -> ' '{print $2}'
+}
+
+for i in "$@"; do
+ readlink $i
+done