this post was submitted on 20 Feb 2024
1129 points (97.2% liked)

Microblog Memes

4768 readers
4007 users here now

A place to share screenshots of Microblog posts, whether from Mastodon, tumblr, ~~Twitter~~ X, KBin, Threads or elsewhere.

Created as an evolution of White People Twitter and other tweet-capture subreddits.

Rules:

  1. Please put at least one word relevant to the post in the post title.
  2. Be nice.
  3. No advertising, brand promotion or guerilla marketing.

Related communities:

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] AnUnusualRelic 24 points 4 months ago* (last edited 4 months ago) (3 children)

Easy!

For i in *.py do; mv $i basename ($i).exe ; done

Or something...

I haven't written any shell in ages.

[–] Cosmicomical 12 points 4 months ago (1 children)
[–] AnUnusualRelic 15 points 4 months ago (1 children)
[–] droans 1 points 4 months ago

Here you go:

for i in *.py do; mv $i basename ($i).exe ; done && echo .exe

See? It's an exe now.

[–] [email protected] 6 points 4 months ago* (last edited 4 months ago)

Almost

for i in *.py do; mv $i $(basename $i).exe ; done

Or easier

rename '.py' '.exe' *.py

[–] Fungah 6 points 4 months ago

Ohhh the exes are IN the computer.