combine.bash: simple script to make a file containing everything
This commit is contained in:
parent
892ee08f1a
commit
5e2b40d48b
|
@ -1 +1,2 @@
|
|||
* text=auto eol=lf linguist-detectable
|
||||
combine.bash text eol=lf
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
.~*#
|
||||
.~*#*
|
||||
combined.csv
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue