fediverse-piraatit/combine.bash

12 lines
250 B
Bash
Executable File

#!/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