01-01-2008
Quote:
if [ "$month -eq 3 ] || [ "$month -eq 6 ]
Your quotes are open.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All
I have a requirement like, where a file gets generated in a particular dir and once the file is ready and available then I want to execute rest of the script, because untill and unless the file exists and is available there is no use of running rest of the commands in that script.
... (5 Replies)
Discussion started by: csaha
5 Replies
2. UNIX for Dummies Questions & Answers
How to comment a set of lines in a script?
we use # to comment a single line , is there ant other cmd to comment a block? (2 Replies)
Discussion started by: rolex.mp
2 Replies
3. Shell Programming and Scripting
Hi
can any body pls help me :
I have a file Which Content is like following:
p3:s1234:powerfail:/usr/sbin/shutdown -y -i5 -g0 >/dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/critagt > /dev/msglog 2<>/dev/msglog
ca:3:respawn:/opt/GoldWing/currentPM/local/startcia.sh... (2 Replies)
Discussion started by: Aditya.Gurgaon
2 Replies
4. UNIX for Dummies Questions & Answers
Hiiii
I have a file which contains huge data as
a.dat:
PDE 1990 1 9 18 51 28.90 24.7500 95.2800 118.0 6.1 0.0 BURMA
event name: 010990D
time shift: 7.3000
half duration: 5.0000
latitude: 24.4200
longitude: 94.9500
depth: 129.6000
Mrr: ... (7 Replies)
Discussion started by: reva
7 Replies
5. Shell Programming and Scripting
Hi All,
I am struggling to get my head around the following issue.
I am having to comment out lines between two delimiters by placing an asterix in position 7 but retain all lines in the file and in the same order.
so for example a file containing:
...
...
DELIM1
...
...
DELIM2... (2 Replies)
Discussion started by: Bruble
2 Replies
6. Shell Programming and Scripting
Hi All,
I know we can comment by using "#" .... I want to know... is there any way to comment a whole big script easily....
In a file i need to comment more than 15 lines ........ and check the script and un comment back.
I am learning VI now so its taking lot of time to comment and un... (4 Replies)
Discussion started by: firestar
4 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Can anyone let me know how to comment multiple lines in VI editor?
Many thanks.
Regards,
Venkat. (3 Replies)
Discussion started by: venkatesht
3 Replies
8. Shell Programming and Scripting
Hi
I'm trying to comment out specific lines from /etc/fstab file, for simplicity I'm trying to use perl one liner but it errors out,
Below is the Perl oneliner I'm using,
perl -wlp -i -e 'BEGIN{$flag=0}if (!/root/) && (!/boot/) && (!/tmpfs/) ) {$flag =1;} elsif (/^$/) {$flag=0} if ($flag)... (2 Replies)
Discussion started by: mbak
2 Replies
9. Shell Programming and Scripting
I have an xml file which has following code :
<abc-ref>
<abc-name>abc.efg.hij.klm</abc-name>
</abc-ref>
I want to comment this whole section out and I have written the following script : (where "hij" is unique string in the file)
TEMPFILE=replaceYY.tmp
file=hello.xml
sed -n... (6 Replies)
Discussion started by: Dish
6 Replies
10. Web Development
I have found this bit of code that nearly does what I want.
Basically 3 input fields, I want to copy t2 to t3 as it's typed but only if t1 contains data AND t3 is empty:
<input type="text" id="t1" />
<input type="text" id="t2" />
<input type="text" id="t3" />
<script> var t2 =... (4 Replies)
Discussion started by: barrydocks
4 Replies
LEARN ABOUT PHP
jdmonthname
JDMONTHNAME(3) 1 JDMONTHNAME(3)
jdmonthname - Returns a month name
SYNOPSIS
string jdmonthname (int $julianday, int $mode)
DESCRIPTION
Returns a string containing a month name. $mode tells this function which calendar to convert the Julian Day Count to, and what type of
month names are to be returned.
Calendar modes
+-----+--------------------------------------+---+
|Mode | | |
| | | |
| | Meaning | |
| | | |
| | Values | |
| | | |
+-----+--------------------------------------+---+
| 0 | | |
| | | |
| | Gregorian - abbreviated | |
| | | |
| | Jan, Feb, Mar, Apr, May, Jun, Jul, | |
| | Aug, Sep, Oct, Nov, Dec | |
| | | |
| 1 | | |
| | | |
| | Gregorian | |
| | | |
| | January, February, March, April, | |
| | May, June, July, August, September, | |
| | October, November, December | |
| | | |
| 2 | | |
| | | |
| | Julian - abbreviated | |
| | | |
| | Jan, Feb, Mar, Apr, May, Jun, Jul, | |
| | Aug, Sep, Oct, Nov, Dec | |
| | | |
| 3 | | |
| | | |
| | Julian | |
| | | |
| | January, February, March, April, | |
| | May, June, July, August, September, | |
| | October, November, December | |
| | | |
| 4 | | |
| | | |
| | Jewish | |
| | | |
| | Tishri, Heshvan, Kislev, Tevet, She- | |
| | vat, AdarI, AdarII, Nisan, Iyyar, | |
| | Sivan, Tammuz, Av, Elul | |
| | | |
| 5 | | |
| | | |
| | French Republican | |
| | | |
| | Vendemiaire, Brumaire, Frimaire, | |
| | Nivose, Pluviose, Ventose, Germinal, | |
| | Floreal, Prairial, Messidor, Thermi- | |
| | dor, Fructidor, Extra | |
| | | |
+-----+--------------------------------------+---+
PARAMETERS
o $jday
- The Julian Day to operate on
o $calendar
- The calendar to take the month name from
RETURN VALUES
The month name for the given Julian Day and $calendar.
PHP Documentation Group JDMONTHNAME(3)