Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/17/84; site bdaemon.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!hao!nbires!bdaemon!carl From: carl@bdaemon.UUCP (carl) Newsgroups: net.unix Subject: Re: sed question Message-ID: <308@bdaemon.UUCP> Date: Mon, 30-Sep-85 12:36:31 EDT Article-I.D.: bdaemon.308 Posted: Mon Sep 30 12:36:31 1985 Date-Received: Thu, 3-Oct-85 05:12:37 EDT References: <1492@uwmacc.UUCP> Distribution: net Organization: Daemon Assoc., Boulder, CO Lines: 27 > sed(1) allows you to give the script on the command line like this: > > sed -e 'script' file1 > file2 > > Some of the sed commands, like a\ and i\ seem to need additional > lines of input. I know that if I use the "-f sedfile" option I > can stash the commands in a file, but is there a way I can use > "append" and "insert" with the -e option? > -- > Jeff Percival ...!uwvax!uwmacc!jwp Enter your commands like $ sed -e ' > one or more lines > of script including > appends and inserts' file1 > file2 Note the UNIX secondary prompt and that you don't really need the -e option. Carl Brandauer daemon associates, Inc. 1760 Sunset Boulevard Boulder, CO 80302 303-442-1731 {allegra|amd|attunix|cbosgd|ucbvax|ut-sally}!nbires!bdaemon!carl Brought to you by Super Global Mega Corp .com