Lines Matching refs:lines
70 * Addresses:: Selecting lines with `sed'
80 * Centering lines::
84 * Reverse chars of lines::
85 * tac:: Reverse lines of files
86 * cat -n:: Numbering lines
87 * cat -b:: Numbering non-blank lines
90 * wc -l:: Counting lines
91 * head:: Printing the first lines
92 * tail:: Printing the last lines
93 * uniq:: Make duplicate lines unique
94 * uniq -d:: Print duplicated lines of input
95 * uniq -u:: Remove all duplicated lines
96 * cat -s:: Squeezing blank lines
189 length of 0 (zero) means to never wrap long lines. If not
208 for MS-DOS, Windows, Cygwin--text files are composed of lines
212 this special processing and considering lines to end at a line
287 * Addresses:: Selecting lines with `sed'
305 `sed' operates by performing the following cycle on each lines of
333 3.2 Selecting lines with `sed'
339 (Note that `sed' counts lines continuously across all input files
344 FIRST. In particular, lines will be selected when there exists a
346 * STEP). Thus, to select the odd-numbered lines, one would use
392 If no addresses are given, then all lines are matched; if one
393 address is given, then only lines matching that address are matched.
396 separated by a comma (`,'). An address range matches lines starting
402 first address: a range will always span at least two lines (except of
425 Matches ADDR1 and the N lines following ADDR1.
428 Matches ADDR1 and the lines following ADDR1 until the next line
433 an address range, then only lines which do _not_ match the address range
512 lines where `#include' is the first thing on line--if there are
835 Queue the lines of text which follow this command (each but the
854 Immediately output the lines of text which follow this command
860 Delete the lines matching the address or address-range, and output
861 the lines of text which follow this command (each but the last
875 form; long lines are split, with a trailing `\' character to
879 means to never wrap long lines. If omitted, the default as
990 `r' does). The command can run across multiple lines, all but the
997 This GNU `sed' extension fills and joins lines in pattern space to
998 produce output lines of (at most) N characters, like `fmt' does;
1171 * Centering lines::
1175 * Reverse chars of lines::
1178 * tac:: Reverse lines of files
1179 * cat -n:: Numbering lines
1180 * cat -b:: Numbering non-blank lines
1183 * wc -l:: Counting lines
1184 * head:: Printing the first lines
1185 * tail:: Printing the last lines
1186 * uniq:: Make duplicate lines unique
1187 * uniq -d:: Print duplicated lines of input
1188 * uniq -u:: Remove all duplicated lines
1189 * cat -s:: Squeezing blank lines
1192 File: sed.info, Node: Centering lines, Next: Increment a number, Up: Examples
1197 This script centers all lines of a file on a 80 columns width. To
1229 … Node: Increment a number, Next: Rename files to lower case, Prev: Centering lines, Up: Examples
1244 used in *note Numbering lines: cat -n, is faster. It works by
1394 File: sed.info, Node: Print bash environment, Next: Reverse chars of lines, Prev: Rename files t…
1428 File: sed.info, Node: Reverse chars of lines, Next: tac, Prev: Print bash environment, Up: Exam…
1433 This script can be used to reverse the position of characters in lines.
1474 File: sed.info, Node: tac, Next: cat -n, Prev: Reverse chars of lines, Up: Examples
1488 # reverse all lines of input, i.e. first line became last, ...
1490 # from the second line, the buffer (which contains all previous lines)
1521 It uses `sed' to print the line number, then groups lines two by two
1576 select which lines are to be numbered and which are not.
1759 the first 10 lines of input; the number of displayed lines is right
1771 Printing the last N lines rather than the first is more complex but
1785 Mainly, the scripts keeps a window of 10 lines and slides it by
1798 last script: after we have kicked in the appropriate number of lines,
1812 first ten lines of input. After that, all the script does is: exiting
1833 # The two lines are identical. Undo the effect of
1842 # The lines are different; print the first and go
1856 This script prints only duplicated lines, like `uniq -d'.
1863 # Print the first of the duplicated lines
1890 This script prints only unique lines, like `uniq -u'.
1903 # Got two equal lines in pattern space. At the
1907 # Else, we keep reading lines with `N' until we
1927 squeezing blank lines.
1934 # on empty lines, join with next
1947 This one is a bit more complex and removes all empty lines at the
1952 # delete all leading empty lines
1958 # empty lines, but one
1966 This removes leading and trailing blank lines. It is also the
1988 # empty lines are written
1991 # remove ALL empty lines
1994 # all empty lines were deleted/ignored, but we have a non empty. As
2012 construct lines as long as you like.
2078 lines(1). Or, when writing a script to read the next few lines
2146 at least two lines (barring the end of the file); but what you
2270 * Excluding lines: Addresses. (line 101)
2388 * Range of lines: Addresses. (line 65)
2403 * Replacing selected lines with other text: Other Commands. (line 52)
2409 * Selecting lines to process: Addresses. (line 6)
2410 * Selecting non-matching lines: Addresses. (line 101)
2411 * Several lines, selecting: Addresses. (line 65)
2473 * a (append text lines) command: Other Commands. (line 27)
2476 * c (change to text lines) command: Other Commands. (line 52)
2484 * i (insert text lines) command: Other Commands. (line 46)
2530 Node: Centering lines46928
2535 Node: Reverse chars of lines52958
2536 Ref: Reverse chars of lines-Footnote-153959