Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- cd ~farmaceut/all_phenolics
- for file in $(ls ./*.footer); do
- echo "$file --> ${file/%footer/xyz}"
- cat "$file" | tr ',' ' ' | awk 'NF==4' > ${file/%footer/xyz}
- done
- for file in $(ls ./*.xyz); do
- cat "$file" | wc -l | sed -e 's/^[ \t]*//' > temp
- echo "" >> temp
- cat "$file" >> temp
- mv temp $file
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement