this post was submitted on 20 Feb 2024
1130 points (97.2% liked)
Microblog Memes
5860 readers
2868 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:
- Please put at least one word relevant to the post in the post title.
- Be nice.
- No advertising, brand promotion or guerilla marketing.
- Posters are encouraged to link to the toot or tweet etc in the description of posts.
Related communities:
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Easy!
For i in *.py do; mv $i basename ($i).exe ; done
Or something...
I haven't written any shell in ages.
But why is there code?
No more code, just exe.
Here you go:
for i in *.py do; mv $i basename ($i).exe ; done && echo .exe
See? It's an exe now.
Ohhh the exes are IN the computer.
Almost
for i in *.py do; mv $i $(basename $i).exe ; done
Or easier
rename '.py' '.exe' *.py