No Description
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.

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