From owner-freebsd-questions@FreeBSD.ORG Thu Aug 7 16:53:55 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 A2CC11065676 for ; Thu, 7 Aug 2008 16:53:55 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from ns.mahan.org (ns.mahan.org [67.116.10.138]) by mx1.freebsd.org (Postfix) with ESMTP id 7DFE58FC0A for ; Thu, 7 Aug 2008 16:53:55 +0000 (UTC) (envelope-from mahan@mahan.org) Received: from widowmaker.local (crowTrobot [67.116.10.140]) by ns.mahan.org (8.13.6/8.13.6) with ESMTP id m77GrqwH000853; Thu, 7 Aug 2008 09:53:52 -0700 (PDT) (envelope-from mahan@mahan.org) Message-ID: <489B289B.2080102@mahan.org> Date: Thu, 07 Aug 2008 09:53:47 -0700 From: Patrick Mahan User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.1.16) Gecko/20080707 Thunderbird/2.0.0.16 Mnenhy/0.7.5.0 MIME-Version: 1.0 To: beni@brinckman.info References: <200808071534.29383.beni@brinckman.info> In-Reply-To: <200808071534.29383.beni@brinckman.info> Content-Type: text/plain; charset=UTF-8; format=flowed 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 16:53:55 -0000 beni presented these words - circa 8/7/08 8:34 AM-> > 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 ? try 'cat file1.avi file2.avi > file3.avi' Patrick