my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
1.4 KiB

3 years ago
  1. #!/bin/bash
  2. #20.08.2021 23:58:58 Generated by lincentrator
  3. filhere="../../../../../../icons/SE98/places/22/network-workgroup.png"
  4. fil="$(realpath -s "$filhere")" #было /home/joker/Документы/icons/SE98/places/22/network-workgroup.png
  5. filr="$(realpath "$filhere")" #было /home/joker/Документы/GitHub/Win98SE/Icons/SE98/places/22/network-workgroup.png
  6. cmd="md5sum"
  7. if [ -h "$fil" ];then
  8. unlink "$filhere"
  9. cp -f "$filr" "$filhere"
  10. fi
  11. filsum=$($cmd "$filr"|sed 's/ .*//g') #было 6aa67ed3d9675f21ba4d3b3c2a3186c7
  12. $cmd ./* 2>/dev/null|grep $filsum|grep -Gv "/../../../../../../icons/SE98/places/22/network-workgroup.png"$|sed -e 's/^[^ ]* *//g'|while read line; do
  13. ln -srf "$filhere" "$line"
  14. done
  15. #21.08.2021 00:10:56 Added by lincentrator
  16. filhere="../../../../../../icons/SE98/places/22/user-bookmarks.png"
  17. fil="$(realpath -s "$filhere")" #было /home/joker/Документы/icons/SE98/places/22/user-bookmarks.png
  18. filr="$(realpath "$filhere")" #было /home/joker/Документы/GitHub/Win98SE/Icons/SE98/places/22/user-bookmarks.png
  19. cmd="md5sum"
  20. if [ -h "$fil" ];then
  21. unlink "$filhere"
  22. cp -f "$filr" "$filhere"
  23. fi
  24. filsum=$($cmd "$filr"|sed 's/ .*//g') #было f434c1b68609bd0939fafd15b1a4b009
  25. $cmd ./* 2>/dev/null|grep $filsum|grep -Gv "/../../../../../../icons/SE98/places/22/user-bookmarks.png"$|sed -e 's/^[^ ]* *//g'|while read line; do
  26. ln -srf "$filhere" "$line"
  27. done