The advantage of this method is that we don’t need any extra Linux software – we just use the native mv utility, and sometimes coupled with ls, find, or xargs. $ for i in `ls *.txt` do mv "$i" "`echo $i | tr '' ''`" done txt in the present directory to have lowercase letters only, this command will do the job. This command will accept standard input from the ls command, then use xargs to append “_backup” to all files that end in the.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |