programming
I'm happy
I made a mistake but I was in the right mindset and it was easy to fix :3
I have a script that uses sed. But I have thousands of sed scripts to use, so I put them all in a file like so:
```
-e "s/blabla/blablabla/g"
-e "s/...
```
and then I just had to do sed=`cat file | tr '\n' ' '` and then I would use it like so: bash -c "sed $sed"
and while fixing a bug (just my script wrote wrongly in the file, probably at one point when my pc froze), I discovered that sed can use a script file
and the script file looks like so:
```
s/blabla/blablabla
s/...
```
so it was easy to change the file and I only have to edit like 4 lines in my script, and now my sed process is cleaner :3
(bonus: showing you my file with its 1668 scripts... good thing I decided to use a file)
Oh that's not me, I'd never use that kind of controller
I'm a pure bun hopping on the fediverse, sometimes causing stampedes
---
I'm @cesese@niu.moe ; @bunni ; @bunni
Also @cesese@pleroma.bunni.eu when I'll get motivated to get the instance up and running again
#nobot