how to find the 51th record of a file containing 100 records
in unix.
Answers were Sorted based on User's Feedback
Answer / sundar octavious
head -51 <filename> |tail -1
The above command will display the answer.
Is This Answer Correct ? | 33 Yes | 1 No |
Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance
The command grep first second third /usr/you/myfile a) prints lines containing the words first, second or third from the file /usr/you/myfile b) searches for lines containing the pattern first in the files second, third, and /usr/you/myfile and prints them c) searches the files /usr/you/myfiel and third for lines containing the words first or second and prints them d) replaces the word first with the word second in the files third and /usr/you/myfile e) None of the above
What do know about tee command and its usage?
Name the general commands in using unix os for a beginner?
what are processor execution levels and priorities?
What Command will remove a Directory in UNIX?
How do you stop a running process?
What does find command return in unix?
What is an Unix command to convert HEX value to ASCII value located in any flat file.
What is the difference between Shell Programming and Shell scripting?
10 Answers HCL, TCS, Wipro,
What do chmod, chown, chgrp commands do?
What are the general commands in using unix os for a beginner?