• 9 Posts
  • 64 Comments
Joined 2 years ago
cake
Cake day: January 25th, 2024

help-circle




  • I recommend you gnu parallel. It does similar things, but runs the commands in parallel. And it’s way easier to pipe than xargs. If you really need it to run one command at a time you can give number of cores to 1. And it also has progress bars, colors to differentiate stdout fo different commands, etc.

    Basic example: to echo each line

    parallel echo < somefile.txt

    To download all links, number of jobs 4, show progress

    parallel -j 4 --bar ''curl -O" < links.txt

    You can do lot more stuffs with inputs, like placing them wherever with {}, numbers ({1} is first) that allow multiple unique arguments, transformers like remove extension, remove parent path, etc. worth learning














  • I do have a career, I am a specialist of (kinda) GIS and data analysis related to hydrology. I’m currently on the path to complete my PhD within the next year. I have been really successful at pitching my programming ideas on non-programming domain. Solve problems for clients, make applications/algorithms that can outperform what they had before. It does sometimes make me feel like I’m a bit too wide on my skillsets related to others in my field, but at least in my immediate circles, I am still as good in the core aspects of my field. But there are so many people that are better specialist than me if I search around.

    But now, due to the current climate, and situation in the USA, I have been thinking I might have to move to another country before I finish PhD, and I might not be able to find a job in another country immediately, so I’m thinking of finding some small gigs I could do for some side income.