From 3c54e6d3fa6f2d53e452d8a678498e6b92600a59 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 26 Jul 2019 20:47:36 -0400 Subject: implement readlink --- readlink | 7 +++++++ 1 file changed, 7 insertions(+) mode change 100644 => 100755 readlink (limited to 'readlink') diff --git a/readlink b/readlink old mode 100644 new mode 100755 index e69de29..5bf2be5 --- a/readlink +++ b/readlink @@ -0,0 +1,7 @@ +readlink() { + ls -l "$1" | awk -F' -> ' '{print $2}' +} + +for i in "$@"; do + readlink $i +done -- cgit v1.2.1