Question:
kindly help me with one or more unix shell program.?
benam
2006-09-11 11:29:33 UTC
1. to generate squareroot of any number entered through keyboard.

2. to check whether a given file is readable and writeable or both.

3. to check whether a given date is valid or not.(date format ddmmyy)

4. prog. to search multiple words per line.
Three answers:
Ranjith
2006-09-11 13:02:47 UTC
This is not the right place for lazy students....

Go and get your book,work out,learn..

Have a nice Day
John J
2006-09-11 13:15:00 UTC
Again, this would best be done by using Perl. A tutorial can be found at http://www.comp.leeds.ac.uk/Perl/basic.html.



I don't know if Perl has a square root function, but you can just use whatever power function (i believe it is **) to raise a number to the 1/2.



2 - you just have to try to open the file for reading, and then for writing and test if its successful or not. you can't rely on the `ls -al` command unless you have which group and user you are readily available to match



3 - there are string manip functions



4 - see 3.
A D I T Y A
2006-09-15 06:25:55 UTC
Go through UNIX programming by DASS.

You will find most of these purpose commands. Check it first.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...