May 2017
Beginner
552 pages
28h 47m
English
The compression command performs the following tasks:
tr -d '\n\t'
tr -s ' ' or sed 's/[ ]\+/ /g'
sed 's:/\*.*\*/::g'
: is used as a sed delimiter to avoid the need to escape / since we need to use /* and */.
In sed, * is escaped as \*.
.* matches all the text in between /* and */.
sed 's/ \?\([{}();,:]\) \?/\1/g'
The preceding sed statement works like this: