Return to Snippet

Revision: 33636
at October 11, 2010 12:22 by powerthru


Initial Code
#!/bin/bash
#
for FILE in *.csv; do
echo FILE = ${FILE}
awk 'FNR>6{print}' ${FILE} > stripped/${FILE}
done

Initial URL
http://www.unix.com/shell-programming-scripting/110496-awk-find-replace-multiple-files.html

Initial Description
This removes the first six lines from a set of .csv files and writes them to a subdirectory, using awk

Initial Title
strip lines from multiple files

Initial Tags


Initial Language
Bash