Browse code

array syntax auf bash 4

dewomser authored on30/12/2019 21:23:26
Showing1 changed files

... ...
@@ -72,17 +72,16 @@ done
72 72
 ## optional after all Downloads ##
73 73
 
74 74
 ## Feedback if this script is started from crontab
75
-
75
+export HOME=/home/karl
76
+export DISPLAY=:0.0
76 77
 ## Open folder in dolphin KDE
77 78
 #dolphin $dl_folder
78 79
 ## Notifier KDE
79 80
 #f=$(find $dl_folder -mtime 0,2 -type f -regex '.*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\)') && notify-send "Neue Videos": "$f" --icon=video-x-generic
80 81
 
81
-## Notifier KDE in nice
82
-# This part of the is from now on a separated script. To get in this repository
83
-
84
-# f=$(find $dl_folder -mtime 0 -type f -regex '.*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\)')
85
-# folder1=$(echo $dl_folder|sed "s/\//\\\\\//g")
86
-# f1=$(echo $f|sed "s/$folder1/\n /g")
87
-# notify-send "Neue Videos": "$f1" --icon=video-x-generic
82
+ ## Notifier KDE in nice
83
+f=$(find $dl_folder -mtime 0 -type f -regex '.*\.\(mkv\|mp4\|wmv\|flv\|webm\|mov\)')
84
+folder1=$(echo $dl_folder|sed "s/\//\\\\\//g")
85
+f1=$(echo $f|sed "s/$folder1/\n /g")
86
+notify-send "Neue Videos": "$f1" --icon=video-x-generic
88 87