I want create a file with last 10 lines from big-data-file.txt
big-data-file.txt (contains 100 lines)
1
2
3
4
5
...
96
97
98
99
100
to do that, open command line and execute:
tail -n 10 big-data-file.txt > small-file.txt
the results is:
small-file.txt (contains 10 lines)
91
92
93
94
95
96
97
98
99
100
No comments :
Post a Comment