This sed script joins each line that ends with a \ (backslash) to the line that follows it. First, the pattern /\\$/ selects a line that ends with a \ for the group of commands enclosed in {} (braces). The N subcommand then appends the next line, embedding a new-line character.
www.regatta.cs.msu.su/doc/usr/share/man/info/ru_RU/a_do... www.regatta.cs.msu.su/doc/usr/share/man/info/ru_RU/a_doc_lib/cmds/aixcmds5/sed.htm
Sed has several commands, but most people only learn the substitute command: s. The substitute command changes all occurrences of the regular expression into a new value. A simple example is changing "day" in the "old" file to "night" in the "new" file:
www.grymoire.com/Unix/Sed.html www.grymoire.com/Unix/Sed.html
so sed can read from a file or STDIN, and the commands can be specified in a file or on the command line. Note: trailing whitespaces in the sed script file can cause scripts to fail. Use editor which can show the trailing spaces and allows to remove them (vim is a good choice).
www.cs.utk.edu/~vose/c-stuff/sed_tutorial.html www.cs.utk.edu/~vose/c-stuff/sed_tutorial.html
Sed - Wikipedia, the free encyclopedia
sed ( stream editor ) is a Unix utility that (a) parses text files and (b) implements a programming language which can apply textual transformations to such files. It reads input files line by line...
en.wikipedia.org/wiki/Sed
How it works: You feed sed a script of editing commands (like, "change every line that begins with a colon to such-and-such") and sed sends your revised text to the screen. To save the revisions on disk, ... sed "one-or-two-sed-commands" input.file >newfile.txt sed -f bigger_sed.script input.file >newfile.txt...
www.cornerstonemag.com/sed/ www.cornerstonemag.com/sed/
They are not written to teach sed use or regexps to first-time users, but as a reference text for those already acquainted with these tools. QUOTING SYNTAX: The preceding examples use single quotes ('...') instead of double quotes ("...") to enclose editing commands, since sed is typically used on a Unix platform.
www-h.eng.cam.ac.uk/help/tpl/unix/sed.html www-h.eng.cam.ac.uk/help/tpl/unix/sed.html
You can use the sed command to change all occurrences of one string to another within a file, just like the search-and-replace feature of your word processor. The sed command can also delete a range of lines from a file. ... Important Linux Commands; Changing Your Password; Switching Users; Who is Logged In?;
lowfatlinux.com/linux-sed.html lowfatlinux.com/linux-sed.html
This document is a list of Frequently Asked Questions (with the hopefully correct answers) about sed. ... 2. SED Basics ... 2.3 What do i need to do to prepare myself for life with Sed?
www.dreamwvr.com/sed-info/sed-faq.html www.dreamwvr.com/sed-info/sed-faq.html
First create text file demofile2 which is used to demonstrate next sed script examples. Type following sed command at shell promote: $ sed -n '/10\{2\}1/p' demofile2; 1001; Above command will print 1001, here in search pattern we have used \ ... You can group the commands in sed - scripts as shown following example;
www.freeos.com/guides/lsst/ch07sec14.html
I'm not very well versed in UNIX scripting and/or sed... why not tell us what you want to do and we'll see if we can help you write a batch script for it...? ... When the end of a batch script is reached, an implied ENDLOCAL is executed for any outstanding SETLOCAL commands issued by that batch script. SETLOCAL;
www.experts-exchange.com/OS/Microsoft_Operating_Systems... www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/Q_22145681.html
Definitions