Home » Infrastructure » Unix » doubt in grep . (HP-UNIX)
doubt in grep . [message #348273] Tue, 16 September 2008 05:00 Go to next message
Messages: 220
Registered: March 2008
Location: Bhubaneswar
Senior Member

Here what is the difference between both the commands?

>DAY=`cal $MONTH $YEAR | grep . | fmt -1 | tail -1`
>echo $DAY

>DAY=`cal $MONTH $YEAR |fmt -1 | tail -1`
>echo $DAY

here i get no value?if i dont use grep .

please advice?


[Updated on: Tue, 18 November 2008 23:50] by Moderator

Report message to a moderator

Re: doubt in grep . [message #348281 is a reply to message #348273] Tue, 16 September 2008 05:35 Go to previous message
Michel Cadot
Messages: 68658
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
This question bears no connection with Oracle.
Please find a more appropriate forum.
The topic is locked.

Previous Topic: Date Validation
Next Topic: Subject is not able to send thr mail command in HP unix
Goto Forum:

Current Time: Thu May 30 17:29:43 CDT 2024