initial
This commit is contained in:
commit
3c2137da2b
9 changed files with 737 additions and 0 deletions
18
scrapper.sh
Executable file
18
scrapper.sh
Executable file
|
|
@ -0,0 +1,18 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
OUTPUT="all_code.txt"
|
||||
ROOT="."
|
||||
|
||||
> "$OUTPUT"
|
||||
|
||||
find "$ROOT" \
|
||||
-type d -name "__pycache__" -prune -o \
|
||||
-type f -name "*.py" ! -name "*.pyc" \
|
||||
-print | sort | while read -r file; do
|
||||
echo "########################################" >> "$OUTPUT"
|
||||
echo "# FILE: $file" >> "$OUTPUT"
|
||||
echo "########################################" >> "$OUTPUT"
|
||||
echo >> "$OUTPUT"
|
||||
cat "$file" >> "$OUTPUT"
|
||||
echo -e "\n\n" >> "$OUTPUT"
|
||||
done
|
||||
Loading…
Add table
Add a link
Reference in a new issue