Posted By

dorseye on 06/21/12


Tagged

Bash extension


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

greeneggs614
dvertigo


BASH one liner to rename extension of all files in folder


 / Published in: Bash
 

BASH one liner to rename extension of all files in folder

  1. for file in `ls *.asl`; do sudo mv $file `basename $file .asl`.asl_old; done

Report this snippet  

Comments

RSS Icon Subscribe to comments
Posted By: kay333 on January 29, 2018

though this was posted 6 years ago, it still works. my tech paperwriter project is running smoothly and your coding has helped me make it a reality. guess quality codes don't get erased by time

You need to login to post a comment.