aboutsummaryrefslogtreecommitdiff
path: root/bin/unf.sed
blob: 23270fc65b9d09badfa55775a94da602859e8a32 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Unfold lines with leading spaces (e.g. RFC 822 headers)
/^[ \t]/!{
  1!{
    x
    p
    x
  }
  h
}
/^[ \t]/{
  H
  x
  s/[\r\n]//g
  x
}
$!d
x