unix - how can i merge multiple files in linux? -


strong texti have 30 different length files. each of them start 1 , ends around 2000. can join them using "cat" options in unix want join files sequenctially. here picture of files:

file:1

1 t= 295. e= -.72913162e+03 .. ..

1821 t= 314. e= -.72917614e+03

file:2

1 t= 326. e= -.72917628e+03 .. ..

1834 t= 318. e= -.72917464e+03.

i want this,

new file

1 t= 295. e= -.72913162e+03 .. ..

1821 t= 314. e= -.72917614e+03

1822 t= 326. e= -.72917628e+03 .. ..

3655 t= 318. e= -.72917464e+03

thanks help.

not sure understand constraints, how stripping off numbers , renumbering scratch, eg

cat * | sed 's/ *[0-9]* //' | nl 

Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -