使用shell进行大小写转换

Posted by 4Aiur on 03/31/2010 in Shell |

使用shell进行大小写转换

大写转小写

for f in *; do rename $f echo $f | tr "[:upper:]" "[:lower:]" $f; done

小写转大写

for f in *; do rename $f echo $f | tr "[:lower:]" "[:upper:]" $f; done

Tags:

Copyright © 2010-2019 4Aiur All rights reserved.
This site is using the Desk Mess Mirrored theme, v2.5, from BuyNowShop.com.