How do I get the latest 开发者_运维技巧100MB from a text log on Linux? Is there a tool for it, or could you point me on a script?
I have no programming experience on Shell Scripting, Perl or Python, and I don't want to install mono so I can write it in C#.
Thanks!!
Yvan Janssens
You can try this :
tail -c 104857600 yourFile
or if you're more confortable:
tail -c $[1024*1024*100] yourFile
Resources :
- linux.die.net - tail
Use tail:
$ tail -c 104857600 your_file_name
Where 104857600 is 100MB in bytes.
Or:
$ tail -b 204800 your_file_name
Where 204800 is size in 512-byte block.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论