From owner-freebsd-questions@FreeBSD.ORG Fri Aug 8 09:09:30 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E4099106564A for ; Fri, 8 Aug 2008 09:09:30 +0000 (UTC) (envelope-from dennyboy@cableone.net) Received: from s8.cableone.net (s8.cableone.net [24.116.0.234]) by mx1.freebsd.org (Postfix) with ESMTP id B60318FC14 for ; Fri, 8 Aug 2008 09:09:30 +0000 (UTC) (envelope-from dennyboy@cableone.net) Received: from localhost (unverified [24.119.129.3]) by s8.cableone.net (CableOne SMTP Service s8) with ESMTP id 6027956-1872270 for multiple; Fri, 08 Aug 2008 01:35:24 -0700 Date: Fri, 8 Aug 2008 03:35:06 -0500 From: Denny White To: beni Message-ID: <20080808083506.GB13404@bubbhasbox.cableone.net> Mail-Followup-To: Denny White , beni , FreeBSD Questions References: <200808071534.29383.beni@brinckman.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; x-action=pgp-signed Content-Disposition: inline In-Reply-To: <200808071534.29383.beni@brinckman.info> X-Operating-System: OpenBSD 4.3 GENERIC X-GPG-PUBLIC_KEY: http://wwwkeys.nl.pgp.net X-GPG-FINGERPRINT: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with clamscan / ClamAV 0.93.3/6688/Wed Apr 9 09:40:38 2008 X-Vpipe: Scanner said ok (av_avast) X-NotAscii: charset=us-ascii; X-IP-stats: Incoming Last 2, First 125, in=89, out=0, spam=0 ip=24.119.129.3 X-Originating-IP: 24.119.129.3 X-Abuse-Info: Send abuse complaints to abuse@cableone.net Cc: FreeBSD Questions Subject: Re: joining 2 files together ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 09:09:31 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Quoted from beni on Thu, Aug 07, 2008 at 03:34:28PM +0000,: > Hi, > > I am trying to find the equivalent for the old dos "copy file1+file2" command > ("copy myfile1.txt+myfile2.txt" copies the contents in myfile2.txt and > combines it with the contents in myfile1.txt). > But the standard freebsd "cp" doesn't seem to want the "+" between the two > files : > > bsdaddict# cp file1.avi+file2.avi > usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file > cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... > target_directory > bsdaddict# > > So how to I append file2 at the end of file1 to get only one file ? To be more > specific : I would like to merge 2 avi files into one. How do I get > file1.avi+file2.avi into file3.avi ? > Thanks. > -- > Beni. After joining avi files with "cat," use mencoder to rebuild the index: mencoder -forceidx -oac copy -ovc copy infile.avi -o outfile.avi Denny White - -- Do the hard jobs first. The easy jobs will take care of themselves. =============================================================== GnuPG key : 0x1644E79A | http://wwwkeys.nl.pgp.net Fingerprint: D0A9 AD44 1F10 E09E 0E67 EC25 CB44 F2E5 1644 E79A =============================================================== -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (OpenBSD) iEYEARECAAYFAkicBToACgkQy0Ty5RZE55rG4QCeJy+VfVN3SeUSWfd5Ff12+Za1 Su8AoLw1ype3wQvtYyv2qWm4Yum6eWPV =zm7+ -----END PGP SIGNATURE-----