Explore tweets tagged as #PythonImplementation
@mssriharsha
M S Sriharsha
2 years
#PythonImplementation n = int(sys.argv[0]) fobj = open('sample.txt') for index,line in enumerate(fobj): if index == n: break print(line)
@UnixToolTip
Unix tool tip
2 years
By default, the head command shows the first 10 lines of a file. Can be modified using -n followed by the number of lines to show.
0
0
0