The following sed returns (...| od -c
) without ...|cut -d "\n" -f
0000000 1 9 2 \n 2 5 0 \n
0000010
Pseudocode
# http://unix.stackexchange.com/a/290407/16920
sed -n -f - /usr/share/X11/xkb/symbols/us <<END_SED | cut -d "\n" -f1
/xkb_symbols "dvorak" {/,/^};/{
/xkb_symbols "dvorak" {/=
/^};/=
}
END_SED
but blank output.
System: Ubuntu 16.04 64 bit
Hardware: Macbook Air 2013-mid
Sed: 4.2.2
Cut, od: Coreutils 8.25
... | head -n 1
– steeldriver Jun 19 '16 at 09:09