task_boiler
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
task_boiler [2022/08/11 21:08] – raju | task_boiler [2024/01/23 22:55] (current) – raju | ||
---|---|---|---|
Line 4: | Line 4: | ||
Start the first heading with " | Start the first heading with " | ||
- | ===== apply unix commands to all but the first line ===== | ||
- | ==== sample task ==== | ||
- | Let's say we want to sort a series of numbers in descending order but keep the header at the top. For example, given | ||
- | < | ||
- | $ echo -e " | ||
- | value | ||
- | 8 | ||
- | 2 | ||
- | 6 | ||
- | 3 | ||
- | </ | ||
- | we want to output | ||
- | < | ||
- | value | ||
- | 2 | ||
- | 3 | ||
- | 6 | ||
- | 8 | ||
- | </ | ||
- | < | ||
- | $ echo -e " | ||
- | 8 | ||
- | 6 | ||
- | 3 | ||
- | 2 | ||
- | value | ||
- | </ |
task_boiler.1660252101.txt.gz · Last modified: 2022/08/11 21:08 by raju