From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 15:38:26 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 2E09C1065678 for ; Thu, 7 Aug 2008 15:38:26 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from mail.potentialtech.com (internet.potentialtech.com [66.167.251.6]) by mx1.freebsd.org (Postfix) with ESMTP id F3D348FC0A for ; Thu, 7 Aug 2008 15:38:25 +0000 (UTC) (envelope-from wmoran@potentialtech.com) Received: from vanquish.ws.pitbpa0.priv.collaborativefusion.com (pr40.pitbpa0.pub.collaborativefusion.com [206.210.89.202]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.potentialtech.com (Postfix) with ESMTPSA id 9BD0AEBC09; Thu, 7 Aug 2008 11:38:24 -0400 (EDT) Date: Thu, 7 Aug 2008 11:38:29 -0400 From: Bill Moran To: beni@brinckman.info Message-Id: <20080807113829.40fb0453.wmoran@potentialtech.com> In-Reply-To: <200808071534.29383.beni@brinckman.info> References: <200808071534.29383.beni@brinckman.info> X-Mailer: Sylpheed 2.5.0 (GTK+ 2.12.11; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org 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: Thu, 07 Aug 2008 15:38:26 -0000 In response to beni : > > 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. Well, to answer your first question: cp file1.avi file3.avi && cat file2.avi >> file3.avi But to answer your real question, you can't just mash two avi files together to make 1 big one. You'll need something like avidemux or one of the command line tools to actually get the avi headers correct. -- Bill Moran http://www.potentialtech.com