bash
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| bash [2026-03-30 09:47:05] – hyperreal | bash [2026-03-30 09:47:25] (current) – hyperreal | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ===== Print nth line from file ===== | ===== Print nth line from file ===== | ||
| - | < | + | < |
| sed ' | sed ' | ||
| </ | </ | ||
| Line 7: | Line 7: | ||
| ===== Prepend text to beginning of file ===== | ===== Prepend text to beginning of file ===== | ||
| - | < | + | < |
| echo "new content" | echo "new content" | ||
| mv temp file.txt | mv temp file.txt | ||
| </ | </ | ||
| - | < | + | < |
| sed -i ' | sed -i ' | ||
| </ | </ | ||
bash.txt · Last modified: by hyperreal
