Next: Limitations, Previous: sed Programs, Up: Top [Contents][Index]
°Ê²¼¤Ï¡¤sed
¤ò¥Þ¥¹¥¿¡¼¤¹¤ë¤¿¤á¤Î¥¬¥¤¥É¤È¤Ê¤ësed
¥¹¥¯
¥ê¥×¥È¤Ç¤¹¡¥
Some exotic examples: | ||
---|---|---|
• Centering lines: | ||
• Increment a number: | ||
• Rename files to lower case: | ||
• Print bash environment: | ||
• Reverse chars of lines: | ||
Emulating standard utilities: | ||
• tac: | Reverse lines of files | |
• cat -n: | Numbering lines | |
• cat -b: | Numbering non-blank lines | |
• wc -c: | Counting chars | |
• wc -w: | Counting words | |
• wc -l: | Counting lines | |
• head: | Printing the first lines | |
• tail: | Printing the last lines | |
• uniq: | Make duplicate lines unique | |
• uniq -d: | Print duplicated lines of input | |
• uniq -u: | Remove all duplicated lines | |
• cat -s: | Squeezing blank lines |