[問題] 去掉文件的第一個字元
大家好,
我用 find /tmp /mnt /proc /backup/tar -name '*' ! -type d > exclude.filelist
得到如下的檔案內容:
/sys/devices/platform/uevent
/sys/devices/platform/power/wakeup
/sys/devices/platform/pcspkr/uevent
/sys/devices/platform/pcspkr/power/wakeup
/sys/devices/platform/pcspkr/modalias
但我想把"每一行"的第一個'/'去除,請問有什麼相關的指令可以使用呢?
--
我是麵T,哩賀
http://ppt.cc/-eS5
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.117.196.151
※ 編輯: noodleT 來自: 140.117.196.151 (11/12 23:53)
推
11/13 00:16, , 1F
11/13 00:16, 1F
→
11/13 00:18, , 2F
11/13 00:18, 2F
→
11/13 00:19, , 3F
11/13 00:19, 3F
→
11/13 00:27, , 4F
11/13 00:27, 4F
→
11/13 02:16, , 5F
11/13 02:16, 5F
→
11/13 09:12, , 6F
11/13 09:12, 6F
推
11/13 09:53, , 7F
11/13 09:53, 7F
→
11/13 15:57, , 8F
11/13 15:57, 8F
推
11/13 23:59, , 9F
11/13 23:59, 9F