Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 11:18 on June 26, 2006


Sh How phrase used if a judge orders output value of a particular document?

For example, a 2004 paper, if +%Y order date is the outcome of 2003, to determine if what is written about the contents and date +%Y "cat a" consistent

Sh How phrase used if a judge orders output value of a particular document?

[code]
#!/bin/sh

Tmp1=`date +%Y`
Tmp2=`cat 1.txt`

If [ "$tmp1" -eq "$tmp2"]
Then
Echo "aaaaa"
Else
Echo "bbb"
Fi[/code]

Sh How phrase used if a judge orders output value of a particular document?

[ "$ (Date +%Y)" = "$ (cat 1.txt)"] | | echo no match : An echo match



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com