% find . -name xp_20.pdf -exec mv {} ~/ ;

本帖于 2023-12-27 12:49:33 时间, 由普通用户 7grizzly 编辑
回答: How to find and move one file in Linux OSxia232023-12-27 12:24:02

所有跟帖: 

WXC doesn't like the backslash I put in front of the ';' -7grizzly- 给 7grizzly 发送悄悄话 7grizzly 的博客首页 (0 bytes) () 12/27/2023 postreply 12:50:52

Other than that, the cmd finds any file named xp_20.pdf -7grizzly- 给 7grizzly 发送悄悄话 7grizzly 的博客首页 (221 bytes) () 12/27/2023 postreply 12:59:13

谢谢,I'll try. -xia23- 给 xia23 发送悄悄话 xia23 的博客首页 (0 bytes) () 12/27/2023 postreply 13:10:43

请您先登陆,再发跟帖!