Create a simple Java program similar to Linux tail command (http://linux.die.net/man/1/tail) - open to bidding
₹600-1500 INR
Closed
Posted about 10 years ago
₹600-1500 INR
Paid on delivery
Hi Poornachand, My name is Narasimham, i'm a fresher in IT field.
Few days back i attend an interview as a Java Developer and every thing done perfectly But they are conducting some system test.
In that system test they are giving this program(Create a simple Java program similar to Linux tail command )
Please sir help me !! if this test pass i can get this job.
This job is very Urgent to me !!! please please..
Program Description:
1. Create a Simpletail command line program similar to Linux tail but with limited functionality. Linux tail manual is available at [login to view URL]
2. Simpletail must support at least the following functions:
- show last n lines of a file
- optional number of lines option
- help message
- error reporting in case of invalid parameter or file
Please note that live watch function (as in tail -f option) is not required.
For example:
>java -jar [login to view URL] -n 3 [login to view URL]
> return result;
> }
>}
>java -jar [login to view URL] –help
>usage: simpletail [-n lines] file
>java -jar [login to view URL] -n -1 [login to view URL]
>ERROR: invalid number of lines -n
3. Simpletail must be built as a standalone jar ([login to view URL]). Instructions must be provided and it should be easy to build.
4. Simpletail must be reasonably optimized. For example, reading whole file into an array and extract the tail is unacceptable.
Unit tests may be included.
5. Simpletail should contain a reusable tail API.
6. Simpletail should be able to handle Unix, Macintosh and Windows newlines.
Hello, i'm a software, web and mobile developer (Android), i'm a computer engineer, with 4 years of
experiences,i'm very interesting to do the work now :) contact me