/ Published in: Bash
This removes the first six lines from a set of .csv files and writes them to a subdirectory, using awk
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
#!/bin/bash # for FILE in *.csv; do echo FILE = ${FILE} awk 'FNR>6{print}' ${FILE} > stripped/${FILE} done
URL: http://www.unix.com/shell-programming-scripting/110496-awk-find-replace-multiple-files.html