| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] | 
4. Some Sample Scripts
Here are some sed scripts to guide you in the art of mastering
sed.
| 4.2 Increment a Number | ||
| 4.3 Rename Files to Lower Case | ||
| 4.4 Print bashEnvironment | ||
| 4.5 Reverse Characters of Lines | ||
| Emulating standard utilities: | ||
|---|---|---|
| 4.6 Reverse Lines of Files | Reverse lines of files | |
| 4.7 Numbering Lines | Numbering lines | |
| 4.8 Numbering Non-blank Lines | Numbering non-blank lines | |
| 4.9 Counting Characters | Counting chars | |
| 4.10 Counting Words | Counting words | |
| 4.11 Counting Lines | Counting lines | |
| 4.12 Printing the First Lines | Printing the first lines | |
| 4.13 Printing the Last Lines | Printing the last lines | |
| 4.14 Make Duplicate Lines Unique | Make duplicate lines unique | |
| 4.15 Print Duplicated Lines of Input | Print duplicated lines of input | |
| 4.16 Remove All Duplicated Lines | Remove all duplicated lines | |
| 4.17 Squeezing Blank Lines | Squeezing blank lines | |
