参考:http://www.ttlsa.com/linux-command/linux-rename-command-batch-rename/ Linux下rename命令有两种版本一种是C语言版本,一种是perl语言版本 查看版本 man renmae 第一行出现以下内容的是perl版本 User Contributed Perl Documentation 第一行出现其他的或者则是C语言版本 User Commands PS:CentOS默认是C语言版本,Ubuntu是perl版本 C语言
1.read #屏幕输入read name #输入名字 2.echo #在终端打印出内容echo "What is your name ?" # What is your name ? 3.printf #在终端打印出内容printf "Hello world" #Hello world 4.格式替换符printf "%-5s %-10s %-4s\n" No Name Mark以上命令打印出:No Name Mark解释