harsh3466

joined 2 years ago
[–] harsh3466 4 points 1 year ago

I didn’t know that tool existed I will give fzf a try!

[–] harsh3466 1 points 1 year ago

I agree, and I’d like to be there as well so that I can easily read and understand a man page.

[–] harsh3466 1 points 1 year ago (4 children)
  1. Agree. Always was too strong a statement. I’ll edit my post to reflect that.
  2. Thank you! I’m going to read up on string manipulation
  3. True. This has been working for me because I know enough of the directories I’m looking for to insure a single match, but not the necessarily the exact, specific directory name.
[–] harsh3466 2 points 1 year ago

That’s fair. Always was probably too strong.

[–] harsh3466 1 points 1 year ago (2 children)

To insure the script works on the files you want it to work on.

If you use a relative path in a script (is relative the right word?), with something like:

mv *.txt /place/to/move/to/

The script will act on the files in the current working directory, which may not be the files you intend for the script to act on.

If you put the absolute path to where the files reside in the filesystem, then you can run the script from any location, and know that it will act on the files in the specified directory.

Maybe always is too strong a statement. For the scripts I was working on, it was a learning moment when I ran the script without the full path and the script errored out because the files were not in the working (home) directory. (I had ssh’d into the machine to run the script)

[–] harsh3466 2 points 1 year ago

You’re welcome! I stumbled across Multipass when I was looking for virtual machine options for the m1 mac mini I’m working on. I specifically was trying to get away from using the mac coreutils for a consistent syntax experience, and Multipass has been working perfectly for that.

It was only after I’d been using Multipass already that I stumbled across that script, and planned to take a look at it to possibly implement on my machine. I didn’t realize that Homebrew allowed for replacing the coreutils with the GNU versions. Another thing learned!

[–] harsh3466 2 points 1 year ago (2 children)

Yes, thank you! The man pages have been a huge help as I’m working through things. Sometimes I don’t know enough to understand what the man pages are telling me, and then I usually end up on stack exchange looking at a command example that someone has helpfully broken down.

[–] harsh3466 16 points 1 year ago

Absolutely this. Plus I want nothing to do with any kind of car that collects data on me, requires any kind of subscription, or has any kind of screen.

I’m no Luddite, but fuck the enshittification of cars. Combustion engines are a huge problem, but fuck these new cars. Electric or otherwise

[–] harsh3466 6 points 1 year ago

Nice. I haven’t seen that one before!

[–] harsh3466 65 points 1 year ago (5 children)

Obligatory xkcd

[–] harsh3466 7 points 1 year ago

I’m listening to The Rise and Fall of D.O.D.O. By Neal Stephenson and Nicole Galland, and I’m reading Mastering Regular Expressions by Jeffrey Friedl

[–] harsh3466 3 points 1 year ago

My initial goal (before learning what a headache rar is) was to preserve the original file format. Now my plan is to convert them. I have to confer with my friend to see what format they’d prefer for the files. Probably end up using regular old zip.

view more: ‹ prev next ›