14 lines
325 B
Bash
Executable File
14 lines
325 B
Bash
Executable File
#!/bin/bash
|
|
|
|
TARGET=$1
|
|
DEST=$(basename $TARGET)
|
|
VERSION=$2
|
|
|
|
find $TARGET -type f -not -name '.*' -not -name '*.webp' \
|
|
| while read filename ; do
|
|
echo "=============== $filename ============"
|
|
cat $filename
|
|
echo "========= End of $filename ==========="
|
|
echo ""
|
|
done > $(printf "%s_%03d.txt" $DEST $VERSION)
|