this post was submitted on 14 Dec 2024
405 points (97.2% liked)

Comic Strips

12928 readers
3268 users here now

Comic Strips is a community for those who love comic stories.

The rules are simple:

Web of links

founded 2 years ago
MODERATORS
top 28 comments
sorted by: hot top controversial new old
[–] [email protected] 33 points 3 days ago (1 children)

This is exactly how the german train provider names its ticket pdfs. Why not just "date_origin_destination.pdf"

[–] slazer2au 26 points 3 days ago (1 children)

Likely a unique id so when you send the ticket they don't have to faf about finding it in their system.

[–] [email protected] 16 points 3 days ago (1 children)

Yeah but they could just keep that ID but add some useful stuff afterwards.

[–] ZoopZeZoop 4 points 3 days ago

Or add the random stuff after for sorting purposes.

[–] [email protected] 12 points 3 days ago (2 children)

Can’t relate at all. I’m a taxonomy nerd, everything has its own defined subdirectory, the files follow a defined naming convention. Send help.

[–] [email protected] 3 points 3 days ago (1 children)

You‘re good and more efficient. I open 90% of files on Linux, Mac and PC with the search function.

[–] [email protected] 1 points 3 days ago

Zeitgeist is your friend.

[–] MutilationWave 2 points 3 days ago

You're good, everyone else needs help. I'm pretty sloppy with my PC but my work laptop- subsubsubsubsubdirectories.

[–] radix 15 points 3 days ago

Thesis_v5_Final_revised_final_complete_v2_(2).pdf

[–] tequinhu 13 points 3 days ago* (last edited 3 days ago) (3 children)

grep -irl "some text that the file would have"

(Obiously only work for text files, but that's enough to cover 90% of cases for me)

[–] [email protected] 13 points 3 days ago

Now we need a /c/grep_irl

[–] [email protected] 4 points 3 days ago (1 children)

That's a solid windows shame.

[–] tequinhu 1 points 3 days ago

Fun fact: I use "git bash shell" over windows' cmd just because of grep

[–] indepndnt 1 points 3 days ago (2 children)

I don't know what those flags mean, but from context I think this is a command I've needed a bunch of times but haven't had the time or energy to learn about yet. So thanks! I can't wait to try it!

[–] tequinhu 2 points 3 days ago
  • case insensitive
  • rrecursive
  • only show filenames

I also like to use:

  • I (capital i) to skip binary files, if I'm in a folder with heavy images/videos/etc
  • c 3 to show 3 lines around the matched text
[–] [email protected] 10 points 3 days ago (1 children)

"Link_Comes_To_Town_SOAD.mp3"

[–] edgemaster72 2 points 3 days ago

🎶 To save, the Princess Zelda! 🎶

[–] [email protected] 6 points 3 days ago

Trying to remember whether I named the most recent copy of my resume shitstink.pdf or hellpiss.pdf

[–] [email protected] 3 points 3 days ago

I smash my open palm to my keyboard everytime I'm naming something.

In another news, I am currently looking for a job as my employer fired me for 'improper variable naming'.

[–] affiliate 3 points 3 days ago (3 children)

hmmm is the most recent version of this file the one named “newest” or “new (actual)”?

[–] MutilationWave 3 points 3 days ago

Final Final Final(Real)

[–] [email protected] 2 points 3 days ago

spends ten minutes figuring out which one's the latest

has to save it again

"new (actual)(for real)"

[–] toynbee 1 points 3 days ago* (last edited 3 days ago) (1 children)

I used to have this problem, but now I go with one of two solutions:

  • filename-$(date +%F) (or similar)
    • example: notes-2024-12-14.txt
    • can be expanded to include further time details if more than one iteration per day is released
  • filename-Mk#
    • example: product-design-MkII (Or Mk2 if you prefer)
    • pretty much infinitely expandable and you always know which is latest
    • admittedly I'm pretty sure most systems wouldn't sort Roman numerals correctly, but I rarely have enough iterations of anything to worry about it

edit: Also, with either, you could pretty easily write a script that would symlink something like filename-latest to the newest one, but depending on how you're generating the files in question, that might be less viable.

[–] [email protected] 1 points 3 days ago (1 children)

You know how to script and what a symlink is; why aren't you using git or any other kind of version control instead?

[–] toynbee 2 points 3 days ago

Because I formed these habits in the nineties and 00's, well before git was a thing; and because nothing I write matters, other than possibly to my employers, in which case I do use (primarily) git ... Or other version control. (Believe it or not, I've used subversion.)

Most of the documents to which I apply this are things like my resume and DNS server. No one but me will ever care.

Also, I like you both for asking this question and for how you put it.

[–] [email protected] 3 points 3 days ago

BoogerAids.pdf

[–] [email protected] 1 points 3 days ago

Great, now all the other files are gonna make fun of it at File School.