I’m pretty new to using Linux commands. So suppose I have a file with 100 thousand lines. Well suppose I want to get line 50,000. Is there a way I can give the shell a command to retrieve line 50,000 using head and tail commands?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That should work. However this may not be the most efficient way of accessing the 50000th line