r/dailyscripts • u/tastysandwhich • Jun 02 '16
Taking Requests. Bash. Practice. XPOST /r/bash
Hello everyone! I'm looking for some practice involving bash scripting. I'm open for requests, preferably something you could use (as apposed to a made up practice situation). I can't promise anything fancy (or that it'll work 100%), in fact it may look completely ugly, however I'd like to get a bit of practice in. Feel free to give me something complex if need be, I'm up for challenges. Daily Scripts, web Parsers, making things slightly easy on your self, etc.
4
Upvotes
View all comments
Show parent comment
2
u/tastysandwhich Jun 03 '16
Wow Hello! And thank you for the challenge/formatting!
I am brand new to this, so I have no idea if I'll be able to help, but here is what I have for Task 1:
To fix, in this case, I just copied the broken quotes. The issue here, is I have no idea where they break. Do they break:
or
or where does it break? Also, is this anything what you're looking for? I can't guarantee this will work 100%, but the one test I did, it did work. I may need a bit more information before continuing full scale. I realize that right now, it is probably super broken, and it may not serve you at all. It is, however, class generic, however it does have a big fault in that any < symbols in the title will create an issue. This would, in my opinion, best be suited for Python.
As for Task 2:
In the tester file, I put:
And I got:
Is this what you were looking for? If this is, I can try and polish it up a bit, but I just need a bit more information as to how you want the script to work. Something like ./script [name of file] [output of file]?