File: 0.txt

package info (click to toggle)
clog 1.3.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 680 kB
  • sloc: cpp: 8,670; makefile: 10
file content (32 lines) | stat: -rw-r--r-- 1,181 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
We start with a fragment of text, from the opening scene of Hamlet.  This is
just an example, but will illustrate how clog can be applied to log files.

$ cat hamlet
FRANCISCO at his post. Enter to him BERNARDO
BERNARDO Whos there?
FRANCISCO Nay, answer me: stand, and unfold yourself.
BERNARDO Long live the king.
FRANCISCO Bernardo?
BERNARDO He.
FRANCISCO You come most carefully upon your hour.
BERNARDO Tis now struck twelve, get thee to bed, Francisco.
FRANCISCO For this relief much thanks: tis bitter cold, And I am sick at heart.
BERNARDO Have you had quiet guard?
FRANCISCO Not a mouse stirring.
BERNARDO Well, good night.  If you do meet Horatio and Marcellus, The rivals of my watch, bid them make haste.
FRANCISCO I think I hear them. Stand, ho. Whos there?
HORATIO Friends to this ground.
MARCELLUS And liegemen to the Dane.
FRANCISCO Give you good night.
MARCELLUS O, farewell, honest soldier: Who hath relieved you?
FRANCISCO Bernardo has my place.  Give you good night.
MARCELLUS Holla. Bernardo.
BERNARDO Say, What, is Horatio there?
HORATIO A piece of him.

By default, clog is a pass-through filter that does nothing:

$ clog < hamlet > foo
$ diff hamlet foo
$