Skip to content

Instantly share code, notes, and snippets.

@bradlucas

bradlucas/headers.sh Secret

Created Sep 19, 2016
Embed
What would you like to do?
headers.sh
#!/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