Timeline for bash: how do I write base64-encoded content into a file to specified line
Current License: CC BY-SA 3.0
9 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 24, 2016 at 22:41 | vote | accept | Christoph | ||
| Oct 24, 2016 at 22:30 | comment | added | phk |
@vchrizz Try the -i parameter of base64.
|
|
| Oct 24, 2016 at 22:26 | comment | added | Christoph | ive added my code to clarify. at the moment the line is beeing replaced by the base64 and it has to be within the quotes without newlines and/or spaces for the script to work. | |
| Oct 24, 2016 at 22:21 | comment | added | phk |
@vchrizz Beginning and end of what? wizard-run?
|
|
| Oct 24, 2016 at 21:52 | comment | added | Christoph | ok that worked now, how do i remove newline from beginning and end? | |
| Oct 24, 2016 at 21:32 | history | edited | phk | CC BY-SA 3.0 |
added 38 characters in body
|
| Oct 24, 2016 at 21:32 | comment | added | phk | @vchrizz Oops, writing to the file you are writing to is a bad idea (see github.com/koalaman/shellcheck/wiki/SC2094). My bad, will fix it. | |
| Oct 24, 2016 at 21:01 | comment | added | Christoph | good idea, but i dont understand why, that fills the wizard-run with the base64 part running in loop until i press ctrl+c .. | |
| Oct 24, 2016 at 19:54 | history | answered | phk | CC BY-SA 3.0 |