this post was submitted on 20 Feb 2024
1034 points (97.0% liked)

Microblog Memes

8919 readers
1327 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.
  4. Posters are encouraged to link to the toot or tweet etc in the description of posts.

Related communities:

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] AnUnusualRelic@lemmy.world 23 points 2 years ago* (last edited 2 years 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@lemmy.world 10 points 2 years ago (1 children)
[–] AnUnusualRelic@lemmy.world 15 points 2 years ago (1 children)
[–] droans@lemmy.world 1 points 2 years ago

Here you go:

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

See? It's an exe now.

[–] Fungah@lemmy.world 6 points 2 years ago

Ohhh the exes are IN the computer.

[–] gimsy@feddit.it 5 points 2 years ago* (last edited 2 years ago)

Almost

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

Or easier

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