maiktom 2013-07-21
内容来自互联网
Linux less命令用法
查看nohup.out文件的内容(大于10万行),显示行号,显法读取文件的百分比、行号及总行数。
root@li384-34:/data/grainger_images# less -NM nohup.out
1 Searching for images/10000/1F000/1F400/1F401/1B1529.jpg, processed_num = 1. 2 Searching for images/10000/1F000/1F400/1F401/1C8536.jpg, processed_num = 2. 3 Searching for images/10000/1F000/1F400/1F401/1C8530.jpg, processed_num = 3. 4 Searching for images/10000/1F000/1F400/1F401/C3CYU4.jpg, processed_num = 4. 5 Downloading http://www.google.co.jp/searchbyimage?image_url=http%3A//stable.co.cc/grainger/images/10000/1F000/1F400/1F401/1C8530.jpg&encoded_image=&ima 5 ge_content=&filename=&num=10&hl=en 6 Downloading http://www.google.co.jp/searchbyimage?image_url=http%3A//stable.co.cc/grainger/images/10000/1F000/1F400/1F401/1B1529.jpg&encoded_image=&ima 6 ge_content=&filename=&num=10&hl=en 7 Downloading http://www.google.co.jp/searchbyimage?image_url=http%3A//stable.co.cc/grainger/images/10000/1F000/1F400/1F401/C3CYU4.jpg&encoded_image=&ima 7 ge_content=&filename=&num=10&hl=en 8 Fail to searching images/10000/1F000/1F400/1F401/1C8536.jpg. 9 Searching for images/10000/1F000/1F400/1F401/C3CYR7.jpg, processed_num = 5.