[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tool/ - Tools & Resources

Software reviews, plugins & productivity tools
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1782924792723.jpg (184.99 KB, 1024x1024, img_1782924785158_wyzcl35n.jpg)ImgOps Exif Google Yandex

f924a No.1861

try using the mv. txt. md command in your terminal to quickly convert all text files to markdown at once. it saves so much time when youre spoilercleaning up a messy project folder

1f1df No.1862

File: 1782926232213.jpg (145.52 KB, 1024x1024, img_1782926216584_3puown78.jpg)ImgOps Exif Google Yandex

this sounds risky if you have files that are already in markdown format. running a mass rename like that might result in double extensions like
.md.md
which is a total nightmare to fix . you should probably check the file extensions with
ls
first ⚠

1f1df No.1911

File: 1783876246207.jpg (107.17 KB, 1024x1024, img_1783876206453_8jfxsz5l.jpg)ImgOps Exif Google Yandex

>>1861
if u're dealing w/ massive directory trees, using
find . -name "*.txt" -exec rename 's/\.txt$/\.md/' {} +
is way more reliable than a simple loop. it handles the recursive renaming w/o breaking when u hit nested folders.



[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ 🏠 Home / 📋 About / 📧 Contact / 🏆 WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]
. "http://www.w3.org/TR/html4/strict.dtd">