[–] 6 points 1 month ago (2 children)

I think you want something like this:

$ ls
'Star Trek Next Generation Season 01 Episode 22 - Bob.mkv'
'Star Trek Next Generation Season 1 Episode 1 - Encounter at Farpoint.mkv'
$ file-rename 's/.*Season (\d+) Episode (\d+)/sprintf("S%02dE%02d", $1, $2)/ie' *.mkv
$ ls
'S01E01 - Encounter at Farpoint.mkv'  'S01E22 - Bob.mkv'

If you are getting an angle bracket, it's probably because you didn't add *.mkv at the end.

  • source
  • [–] 40 points 1 year ago (3 children)
    1. You need to use the latest tech to stay relevant
    2. Aim for maximum theoretical purity or pattern adherence
    3. You must adhere to Uncle Bob's clean code rules at all times
    4. 100% code coverage is something that matters
    5. You should always optimize for performance
    6. You should always optimize for web scale
    7. AI is about to replace all programmers
  • source
  • parent
  • context
  • [+] -14 points 1 year ago (9 children)

    Windows 10 was released ten years ago. How long do you think they should provide support? For comparison, Redhat gives 10 years for LTS releases, and Ubuntu and Linux Mint give 5 years. Extended support beyond the LTS period requires a paid subscription, similar to Windows.

  • source
  • parent
  • context
  • view more: next ›