Created
August 14, 2024 10:23
-
-
Save dewomser/72949b30a3b7c04bceb086a0b5731124 to your computer and use it in GitHub Desktop.
#Bash 1-liner. Make a List and afterwards insert new line with content. 3 different ways to do this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #linux #bash | |
| von 1 bis 3 Zählen und dann nachträglich 2,7 in die Liste einfügen, old school | |
| seq 3|sed ' 2 a 2.7 | |
| oder modern (so ähnlich) | |
| echo {{1..3},3.7,{4..9}}' | |
| So! | |
| for i in {1..5}; do echo -e ${i/3/"3\n3.7"}; done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So siehts aus.
