Nav apraksta
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

secret_concat.sh 488B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
  3. PREFIX="secret"
  4. cd $SCRIPTPATH/secret
  5. for dir in */ ; do
  6. [ -L "${d%/}" ] && continue
  7. echo "Processing ${dir%/}"
  8. echo "${dir%/} Passwords" > $PREFIX-${dir%/}
  9. echo >> $PREFIX-${dir%/}
  10. for file in $dir* ; do
  11. [ -L "$file" ] && continue
  12. [ -d "$file" ] && continue
  13. echo -n "${file#"$dir"}: " >> $PREFIX-${dir%/}
  14. cat $file >> $PREFIX-${dir%/}
  15. done
  16. done