Please answer. simple UNIX shell programming.?
-
please answer these unix shell questions. write a menu driven complete shell script that accepts a file name from the user and performs the following 1. to check whether it is a regular file. 2. display the date on which the file was created. 3.display the number of lines in the file. 4.display the last ten lines of file. 5. create a link for the file 6.revoke the write permission to the group members (use octal numbers) 7.grant executive permission to others (do not use octal notations) 8. Display the size of the file. 9.Append some more information to the file. 10.Arrange the contents of the file in ascending order. Thank you
-
Answer:
1) test -f filename 2) ls -u filename 3) wc -l filename 4) tail filename 5) ln filename /home/docs/filename 6) chmod 644 filename 7) chmod o+x filename 8) ls -s filename 9) cat stuff.txt >> filename 10) sort -o filename
Juan at Yahoo! Answers Visit the source
Related Q & A:
- How to execute Unix shell script from Windows?Best solution by Stack Overflow
- Do you anticipate any absences from work on a regular basis? If so, please explain the circumstances. ANSWER?Best solution by Yahoo! Answers
- SOCIAL studies!!! Please answer this question?Best solution by Yahoo! Answers
- IF U ARE A DENTIST please answer?Best solution by Yahoo! Answers
- Can you please answer this physics question?Best solution by Yahoo! Answers
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.