I have always wanted to learn bash scripting for various lightning node related things...and thanks to chatgpt, I never had to actually learn it. Feels like plugging kungfu into my brain. Master it without even having to learn.

Reply to this note

Please Login to reply.

Discussion

Yep me to I’m hoping llama 2 can do the same so I can have it on my own computer

what are you trying to do?

im doing a ton of different things.

Please give me an example of a prompt you would use to make a bash script. 🙏

give me a bash script that goes through the file blahblah.txt and for each entry beginning in lnbc1, run lncli decodepayreq and look for the string 0398xxxx7582 in the output. If that string is found, ignore and move to next entry in the blahblah.txt. If not found, save the entire json output in a file starting with file followed by the number of the event, then move to next entry in the blahblah.txt file. At the end, print the amount of lncli commands processed. (Something like that, I have been playing with it for a bit trying to filger out shitty payments to the muun infrastructure which is the worst wallet of all time btw. )

iris formatted the word pubkey to some link that says pay with lightning, idk why.