大家!! 我想借助sed命令将结果写入文件:
curl -d "token=%token%" -L "http://storage.dm.com/?cmd=get_props&url=/&" | sed 's/.*"id":"\([^"]*\)".*/\1/' > my_root_id
我得到了奇怪的结果:
sed: can't read >: No such file or directorySpentsed: can't read my_root_id: No such file or directory<br>
如何将sed的结果写入文件?