printf
printf FORMAT [ARGUMENT]
printf OPTION
\n :新行 \r :回车 \t :横tab \v :竖tab \f :换页 -v :输出到变量 - :左对其 |
$ printf "|%-7s||%7s||%s|\n" Hello world "my love."
|Hello || world||my love.|
$ printf "%s/%s\n" `pwd` `ls -1 csv-cron*`
/home/cloudil/for_sunny/csv-crontab.sh
$ printf "%s%s\n" `pwd` `ls -1 csv-cron*`
/home/cloudil/for_sunnycsv-crontab.sh
时间: 2024-10-11 22:07:27