I want to rename all files with .txt to .sh and wildcards don’t work to well with the rm command
here’s the trick:
for file in *.txt; do mv $file `basename $file .txt`.sh; done
Popularity: 8% [?]
Tags: apache web server, htaccess, linux, php extension Posted in Linux (Ubuntu) | 1 Comment »
HydTech is proudly powered by
WordPress and the Devblog.
and Comments (RSS).