mirror of
https://github.com/brunofontes/linuxShortcuts.git
synced 2024-11-24 04:14:58 +00:00
9 lines
184 B
Bash
9 lines
184 B
Bash
|
#! /bin/bash
|
||
|
filelist=""
|
||
|
for line in "$@"; do
|
||
|
filename=$(basename -- "$line")
|
||
|
folder=${line%"$filename"}
|
||
|
filelist="$filelist$folder\n"
|
||
|
done
|
||
|
printf "$filelist" | xsel -b -i
|