
字符界面的话,只要开启了gpm服务,就可以用鼠标 *** 作了,
或者是用command
line
editing,就是像vi或者emacs那样编辑,
脚本的话,就有cut和awk。
图形的话,就ctrl+c,在gnome-terminal中就用ctrl+shift+c
不知道你的具体需求是什么,下面三条你看够不够截取第一行
cat testfile | head -n 1
截取最后一行
cat testfile | tail -n 1
截取第二行
cat testfile | head -n 2 | tail -n 1
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)