Combine .ts files

Kenneth Loafman kenneth at loafman.com
Thu Jan 3 23:31:27 UTC 2008


thomas fisher wrote:
> On Tuesday 01 January 2008 06:45:03 Padraig wrote:
>> I'm just wondering how one combines these files into one larger file.  The
>> command line would be preferable.
> 
> The "  >> " at the command level will normally append to an output file.
> example:
> :~$ cat  >> /home/tom/test
> This is the first line
> 
> [1]+  Stopped                 cat >> /home/tom/test
> :~$ cat  >> /home/tom/test
> This the second line.
> 
> [2]+  Stopped                 cat >> /home/tom/test
> :~$ cat   /home/tom/test
> This is the first line
> This the second line.

I did a double-take when I saw your example.  If you issue the script
above, then do a 'ps', you will see two cat processes suspended.  It
looks like you're using a ^Z instead of a ^D as EOF.  ^Z suspends the
current foreground job, i.e. cat, where ^D is End-Of-File.  You've
confused Windows and Linux.

...Ken




More information about the ubuntu-users mailing list