On Tue, 18 Feb 2014 20:39:00 +0000 Chris Green cl@isbd.net wrote:
On Tue, Feb 18, 2014 at 06:38:42PM +0000, Chris Walker wrote:
[snip]
But I don't understand why it works so can you explain it for me please? The problem I have is why am I running the echo line twice?
The 'for' executes everything between the 'do' and the 'done' for each .vcf file. The 'cat' does what you know, I put quotes round the file name to make it work with filenames that have embedded spaces. 'echo' just outputs what's after it, which in the above case is nothing except for CR/LF (end of line). I just did two echoes to give you two blank lines.
Thanks for the explanation. It's much appreciated.