rice/scripts/move.sh

14 lines
380 B
Bash
Raw Permalink Normal View History

2021-07-28 23:44:53 -07:00
#!/bin/bash
for file in $(ls); do
filename=$(filename $file)
extension=$(extension $file)
if [[ $filename != "move" && $filename != $extension ]]; then
echo $filename.$extension
ln -sr $file /home/sudacode/.config/polybar/scripts/$file
elif [[ $filename == $extension ]]; then
echo $filename
ln -sr $filename /home/sudacode/.config/polybar/scripts/$filename
fi
done