-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlsl
More file actions
executable file
·29 lines (27 loc) · 1.04 KB
/
lsl
File metadata and controls
executable file
·29 lines (27 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env bash
#
# ############################################################################
# Project: scripts (none)
# File...: lsl
# Created: Thursday, 2023/10/01 - 10:40:58
# Author.: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Last Modified: Friday, 2023/09/08 - 01:35:56
# Modified By..: @fbnmtz, (fabiano.matoz@gmail.com)
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Version: 0.1.1.7
# ~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~·~·~·~·~·~·~·~~·~·~·~·~·~~·~·~·~·~·~·~·~
# Description:
# > list links in a directory
# ############################################################################
# HISTORY:
#
if [ "$1" != "" ]; then
dir=$1
else
dir=$(pwd)
fi
data=$(ls -la $dir | grep '^l' | awk '{printf("%s:%s\n",$9,$11)}')
header=$(echo "[link]:[target]")
echo " -- List Link's --"
echo -e "$header\n$data" | column -t -s ':'