Concatenate multiple files ignoring the first line

Working solution

{ for f in part*; do tail -n+2 "$f"; done; } > stepB

Non-working solution

tail -n +2 part* > stepB

The non-working solution produced the output with ==> part <==

==> part-00000 <==
00052e572d0e29d03bcb98c3d104fbbe,222-01-61320-08976,1,38,0,152,1
00052e572d0e29d03bcb98c3d104fbbe,222-01-61320-08976,14,23,0,0,1

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s