Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
endor56666yIf it's just a utility script, why not use something like python? Far more flexible, and far less syntax-induced headaches.
You can even call external cmd programs through the subprocess module, of you need to
Also, have you considered using something like 'diff', or 'git diff --no-index' (if it's a txt file and the difference is of a certain kind - just throwing it out there) -
also you can always use a here-string or something and put a python -c in the bash
-
icycrash6836yThis one script does many things. It compares multiple devices lan speed to a base history to see if it changed and check if the device has a signal above a -60. After all that it sends the info out. I got all that stuff done there pretty easily, but the signal increasing by 5 dbm is frustrating.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo36My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Trying to compare two files line by line to see if a signal has increased by 5 dbm or more in bash is hurting my brain. I probably need to switch from bash for it but so much of the other jobs this script does is fully functional in bash I'd hate to switch now. Any advice please help.
rant
fml