[–] justlogin 0 points 1 point 1 point (+1|-0) ago
Honestly, most scripts I write for specific purposes just pipe one unix command to another. You can often process HTML/XML with grep/awk/sed and maybe xmllint/json_pp if the required filter is simple and local enough and hack something together. That is entirely improper but will do often enough. :/
[–] AnthraxAlex 0 points 1 point 1 point (+1|-0) ago (edited ago)
I do the same thing for a lot of work but most of the time the scripts are system level glue tying together lots of already written functionality. I don't necessarily think of that stuff as an app though. To me an application is more monolithic than that and narrower in scope.
[–] justlogin ago (edited ago)
Part of a stupid little thing, but it worked at the time...
This title script is modified from another script bundle for directory listing. That other version would use filename if no title present.
Both use cases are obsolete now.
#!/bin/sh
# extract webpage title from a downloaded webpage (via wget)
# intended for youtube pages, a title is always present
# takes first title to ignore titles of related videos
# !!! obsolete !!! use youtube-dl
grep -io '<title[^<]*</[^<>]*>' "$1" | sed -e 's/^[^>]*>//; s/<.*$//' | head -1 | tr -d '\n\r'
[–] AnthraxAlex 0 points 1 point 1 point (+1|-0) ago (edited ago)
You can call python or c++ from c# using com interop bindings if you have some external library you want to consume from your c# app. I'd recommend learning c# over c++ because it's going to be more widely used except in niche use cases and it will be easier to go from knowing c# to learning c++ when you need too.