Shell Script

Can someone plz explain to me how to write a shell script to check date? Thanx
[85 byte] By [newbie084a] at [2007-11-27 5:17:35]
# 1
1) Why are you asking about shell scripts on a Java forum.2) What do you mean "check date"? That requirement contains almos zero information.
jverda at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 2
Sounds like a linux/unix question"Check date"?You'd need to be more specific anyway...but a Java forum is probably not the best place for it.Did you google it, btw?
xiarcela at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 3
> 1) Why are you asking about shell scripts on a Java> forum.> > 2) What do you mean "check date"? That requirement> contains almos zero information.****..you beat me to it!
xiarcela at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 4
#/bin/bashdateThere ya go... but I'm guessing that's probably not what you meant.
kevjavaa at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 5
> > #/bin/bash> date> > > There ya go... but I'm guessing that's probably not> what you meant.Slight correction:#!/bin/bashdate
jverda at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 6
> Slight correction:Note to self: triple-check all future smart-assed answers for syntactical correctness ;).
kevjavaa at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 7
thanx kevjava. sry for not being very clear initially. Its a script to check if a date entered is a saturday
newbie084a at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 8
> thanx kevjava. sry for not being very clear> initially. Its a script to check if a date entered is> a saturdaySo, again, if you want a shell script to do this, why are you asking here?
jverda at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 9
>So, again, if you want a shell script to do this, why are you asking here? cuz this is where i wanna ask it. u dont have to reply. the question wasnt posed to u in the first place so go look for another place to b a *****
newbie084a at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 10

> So, again, if you want a shell script to do

> this, why are you asking here?

Yeah, dude, sorry, your best resources will be:

man date

man test

man bash

and, of course, the almighty [url=http://www.google.com/search?num=100&hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=pSb&q=bash+scripting+tutorial&btnG=Search]Google[/url]...

kevjavaa at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 11

> >So, again, if you want a shell script to do this,

> why are you asking here?

>

> cuz this is where i wanna ask it. u dont have to

> reply. the question wasnt posed to u in the first

> place so go look for another place to b a *****

Stop being a whiny, illiterate weenie. You posted the question in an inappropriate place. If you can't deal with people telling you that, that's your problem.

jverda at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 12

> >So, again, if you want a shell script to do this,

> why are you asking here?

>

> cuz this is where i wanna ask it. u dont have to

> reply. the question wasnt posed to u in the first

> place so go look for another place to b a *****

Oh here we go again. Did a busload of ******* just break down outside the forum or something? Listen, newbie, drop the attitude, you're the one being a *****. Questions about shell scripts don't belong here, end of story. People like jverd give their time of their own free will to help people out, they have every right to try and stop people polluting the boards with inappropriate questions.

georgemca at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 13
I apologize guys, didnt realize i had posted in the wrong forum. Im sorry Jverd for my statement directed at u. and to u georgemc, no one ask'd for ur 2 cent comment so shelf it
newbie084a at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 14

> I apologize guys, didnt realize i had posted in the

> wrong forum. Im sorry Jverd for my statement directed

> at u. and to u georgemc, no one ask'd for ur 2 cent

> comment so shelf it

No one asked for your question in the first place so be careful about throwing stones when you live in a glass house.

Aknibbsa at 2007-7-12 10:40:26 > top of Java-index,Java Essentials,Java Programming...
# 15

> and to u georgemc, no one ask'd for ur 2 cent

> comment so shelf it

You still don't get it. This is a public forum. You don't get to ask for people's comments, people are free to comment on whatever they like. And if you go around making yourself smell like ****, don't be surprised if people comment on that.

DrClapa at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 16
> And if you go> around making yourself smell like ****, don't be> surprised if people comment on that.First there was Fowler's notion of code smells, now there's ...
Hippolytea at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 17
well in that case I could post whatever i want wherever i want.
newbie084a at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 18
> well in that case I could post whatever i want wherever i want.Or you could grow up and be a mensch.
Hippolytea at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 19
> well in that case I could post whatever i want wherever i want.Now you get it. Don't forget that the same thing applies to everybody, though. Consider the possible responses to what you post.
DrClapa at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 20

> I apologize guys, didnt realize i had posted in the

> wrong forum. Im sorry Jverd for my statement directed

> at u.

No harm done. But how did you not know that shell scripts and Java are different?

The thing is, I'd have probably helped you if you'd given a ******* reason but been polite, like "I know it doesn't belong here, but I couldn't find a good unix forum," or something.

> and to u georgemc, no one ask'd for ur 2 cent

> comment so shelf it

See, now that's not going to do much for your odds of getting help. Your choice. Just letting you know.

jverda at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 21

> well in that case I could post whatever i want

> wherever i want.

Yes, you can. We can't stop you. We can, however, refuse to help you and report abuse so that your posts and possibly account get deleted.

You are the one who started being rude here, and being publicly rude to and in front of the people whose help you're seeking is generally not in your best interest.

jverda at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 22

> I apologize guys, didnt realize i had posted in the

> wrong forum. Im sorry Jverd for my statement directed

> at u. and to u georgemc, no one ask'd for ur 2 cent

> comment so shelf it

I know but I thought I'd give it anyway because I'm sick of kids like you copping the big attitude because they're tucked away safely behind a keyboard and throwing big tantrums because the real world isn't arranged quite the way you feel you're entitled to have it. And there is absolutely nothing you can do about it

georgemca at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...
# 23
newbie084 has left the building
newbie084a at 2007-7-21 21:24:02 > top of Java-index,Java Essentials,Java Programming...