“the
How To Output “the Command’s Output” To A Text File In Unix?

hi, i am working on solaris
trying to execute this command.
du -k /lpg
the command works ok but i want the output not to be displayed on screen but instead to be written in a text file.
i tried this but it didnt work.
du -k /lpg > /izmir1/output.txt
Somebody has an idea?

Read More
Posted on 11th February 20101 Comment
How To Output “the Command’s Output” To A Text File In Unix?

hi, i am working on solaris
trying to execute this command.
du -k /lpg
the command works ok but i want the output not to be displayed on screen but instead to be written in a text file.
i tried this but it didnt work.
du -k /lpg > /izmir1/output.txt
Somebody has an idea?

Read More
Posted on 8th February 20101 Comment
Urgent: Unix Command Line To Solve The Median Problem.?

My input:
10
15
20
My desired output:
Median = 15
**From the three figures in above, I know that 15 is the median. How can I use the UNIX command line to find it out automatically? My senior is advised me can use the ‘awk’ command line and the ‘if’ ‘else’ condition at the same time. Hope any UNIX expert [...]

Read More
Posted on 6th January 20101 Comment
In Unix, Regular Expressions, When Does ^ Mean “the Beginning Of Line”, And When Does It Mean “don’t Contain”?

In Unix, regular expressions, in which cases does ^ mean “the beginning of line”, and in which cases “don’t contain”

Read More
Posted on 11th September 20091 Comment
Improve the web with Nofollow Reciprocity.