标签: shell ls
为什么我的程序忽略换行符?
#!/bin/bash echo -n "Input dir path : " read path function lshead4() { for i in 1 do ls -l $path | head -4 done } echo $(lshead4)