|
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 |
| |