格式化输出命令printf,不过不能直接接文件,只能把文件内容cat出来。
[root@vmtest ~]# printf "%-10s %-10s %-10s %-10s\n" $(cat score.txt)
Name en math sport
coosh 100 100 100
panny 90 90 90
mingming 85 85 99.5
转载于:https://blog.51cto.com/coosh/1732191
格式化输出命令printf,不过不能直接接文件,只能把文件内容cat出来。
[root@vmtest ~]# printf "%-10s %-10s %-10s %-10s\n" $(cat score.txt)
Name en math sport
coosh 100 100 100
panny 90 90 90
mingming 85 85 99.5
转载于:https://blog.51cto.com/coosh/1732191