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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -