在LINUX下退出SHELL,怎样自动清空history

来源:百度知道 编辑:UC知道 时间:2024/09/28 11:26:54

你好
你说的那个用shift + :
在加上wq
给你个shell脚本
foreach f2 ($ff2)
echo $f2
set flag=0
foreach f1 ($ff1)
if ($f2 == $f1) then
set flag=1
endif
end
if($flag == 0) then
sed -e '/'$f2'/d' archivepix.html >ftmp # 此句最关键之处在于'$f2'可用于正则表达式。
mv ftmp archivepix.html -f
endif
end
能看懂吧