File: revlines.sed.html

package info (click to toggle)
sedsed 2.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,008 kB
  • sloc: sed: 37,239; ansic: 2,395; python: 815; sh: 624; makefile: 95
file content (20 lines) | stat: -rw-r--r-- 1,069 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<html>
<head><meta name="Generator" content="sedsed --htmlize">
<title>Colorized revlines.sed</title></head>
<body bgcolor="#000000" text="#ffffff"
      link="#ff00ff" alink="#ff00ff" vlink="#ff00ff">
<pre>
<font color="#00ffff"><b>#n</b></font>
<font color="#00ffff"><b>#! /bin/sed -nf</b></font>

<font color="#00ffff"><b># These three reverse the lines in a file by moving the line to</b></font>
<font color="#00ffff"><b># the *beginning* of hold space.  Replace these three with a `p'</b></font>
<font color="#00ffff"><b># (or remove them and remove the -n flag above) to reverse</b></font>
<font color="#00ffff"><b># the chars on a single line</b></font>
<font color="#8080ff"><b>1</b></font> <font color="#ff6060"><b>!</b></font><font color="#ffff00"><b>G</b></font>
<font color="#ffff00"><b>h</b></font>
<font color="#8080ff"><b>$</b></font> <font color="#ffff00"><b>p</b></font>

<font color="#00ffff"><b>### colorized by <a href="https://aurelio.net/projects/sedsed/">sedsed</a>, a debugger and code formatter for sed scripts</b></font>

</pre></body></html>