我正在寻找一个简单的命令,比如
$ less -{view_from_bottom_of_the_file_option} filename或
$ vi -{start_viewer_from_the_bottom} filename观众,编辑--什么都行。
谢谢。
发布于 2010-08-31 15:43:26
vi + filename (在最后一行打开文件文件名)
或
vi +lineNumber filename (例如,打开文件名在第100行的文件,vi +100 filename)
发布于 2010-08-31 15:43:29
tac $file | less将颠倒各行的顺序。
发布于 2010-08-31 15:47:41
您可以使用vim的+[num]命令行选项。
+[num] The cursor will be positioned on line "num" for the first
file being edited. If "num" is missing, the cursor will be
positioned on the last line.因此,要将光标放在最后一行,您可以这样做:
vim + file_namehttps://stackoverflow.com/questions/3606961
复制相似问题