linuxShortcuts/Dolphin/copyName.sh

8 lines
155 B
Bash
Raw Normal View History

#! /bin/bash
filelist=""
for line in "$@"; do
filename=$(basename -- "$line")
filelist="$filelist$filename\n"
done
printf "$filelist" | xsel -b -i