You are reading a single comment by @aggi and its replies. Click here to read the full conversation.
  • I've got this code to extract the first 5 lines of a bunch of semi-colon delimited text file and append the filename to the start of each line.

    awk 'FNR==1,FNR==5 {printf("%s;%s\n",FILENAME,$0)}' *.csv > output.csv
    

    Any suggestions how I get this to scan through sub-directories too to pick up files in there? Cheers

About

Avatar for aggi @aggi started