-1
有一個文件/home/tiger/Desktop/shell practice
。我想從中刪除9個空格:剪下名稱中包含空格的文件
cut -c 10- '/home/tiger/Desktop/shell practice'
cut: /home/tiger/Desktop/shell practice: No such file or directory
我該怎麼做?
有一個文件/home/tiger/Desktop/shell practice
。我想從中刪除9個空格:剪下名稱中包含空格的文件
cut -c 10- '/home/tiger/Desktop/shell practice'
cut: /home/tiger/Desktop/shell practice: No such file or directory
我該怎麼做?
cut -c 10- '/home/tiger/Desktop/shell\ practice'
一位朋友告訴我如何解決它。
你有一個文件嗎? –
因爲即使文件名有空格,單引號也應該起作用。 –
http://stackoverflow.com/questions/1574898/bash-and-filenames-with-spaces – tartar