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

Here what is the difference between both the commands?

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


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


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

please advice?

thanks

[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: 68637
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.

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


Current Time: Tue Apr 16 15:16:50 CDT 2024