Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
\n在尝试从命令中修剪回车时,也\n从末尾删除了,因此我无法执行该命令。下面的命令:
\n
ps -ef| grep "xyz.jar" | cut -d ' ' -f2
给出:
{newline} 12334{newline}
我想kill -9用这个附加一个命令,因此我需要最后一个{newline},而不是第一个。
kill -9
{newline}
我怎样才能删除其中的第一个{newline}?