combine.bash: simple script to make a file containing everything

This commit is contained in:
Aminda Suomalainen ⚧ 2023-03-05 11:27:59 +02:00
parent 892ee08f1a
commit 5e2b40d48b
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
3 changed files with 14 additions and 1 deletions

1
.gitattributes vendored
View File

@ -1 +1,2 @@
* text=auto eol=lf linguist-detectable
combine.bash text eol=lf

3
.gitignore vendored
View File

@ -1 +1,2 @@
.~*#
.~*#*
combined.csv

11
combine.bash Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
echo "Account address,Show boosts" > combined.csv
for csv in *.csv; do
if [ "$csv" == "combined.csv" ]; then
continue;
else
cat combined.csv
cat $csv | grep -v "Account address,Show boosts" | tee -a combined.csv
fi
done