-
-
Save bradlucas/bc4b54e83c9507e81861170329f2e35c to your computer and use it in GitHub Desktop.
headers.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Echo the header lines for all the cvs files in the current directory | |
for filename in *.csv; | |
do | |
# echo $filename; | |
line=$(head -n 1 $filename); | |
echo $line; | |
done | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment