]> git.sesse.net Git - backup.sh/blobdiff - finn_ufullstendige.sh
*** empty log message ***
[backup.sh] / finn_ufullstendige.sh
index 39892d1c024e29a069848eb12a62cb72a7540d5b..7ca4984e13fe3c986df47dd8e4a18138eb5d2016 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/bash
 
 #Hovedkatalogen
-topdir=/backup
+topdir=$1
 #Utfil
-utfil=/home/backup/public_html/ufullstendige.html
+utfil=$2
 
 dato=`date`
 
@@ -42,9 +42,9 @@ cd $topdir
 for maskin in `ls -1 | grep -v lost+found`
 do
  cd $topdir/$maskin
- for del in `ls -1 | grep -v navn`
+ for del in `ls -1 | grep -v .name`
  do
-  delnavn=`cat $topdir/$maskin/$del.navn`
+  delnavn=`cat $topdir/$maskin/$del.name`
   cd $topdir/$maskin/$del
   for level in `ls -1`
   do