Commit db8c709c authored by Alexis Lebis's avatar Alexis Lebis

bash script to create allbestsols.txt & allallbestsols.txt

parent 01c3e212
#bash
for d in */ ;
do
echo $d" " | tr -d "\n" >> 'allallbestsols.txt'
cd $d
rm -f 'allbestsols.txt'
for f in bestsol.* ;
do
cat $f >> 'allbestsols.txt'
echo >> 'allbestsols.txt'
cat $f | cut -d " " -f 1 | tr -d "\n" >> ../'allallbestsols.txt'
echo " " | tr -d "\n" >> ../'allallbestsols.txt'
done
cd ..
echo >> 'allallbestsols.txt'
done
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment