SHELL scripting/ shell functions
hellow,
does anyone know a good website for scripting-newbies ? I found a tutorial on lingucommand.org, but there seems to be syntax-errors! so can anyone help me in writing shell functions? thanks alot in advance maya |
Quote:
Which commands were giving you syntax errors? I'd be quite surprised if that website had syntax errors in its examples! |
shell scripting
yes , linuxcommand.org
well, i tried the same program, as written on my computer and it didnt give the results they said it would, here s the example given, ofcourse i saved it in a file rather than directly on the prompt ! [me@linuxbox me]$ function today { > echo "Today's date is:" > date +"%A, %B %-d, %Y" > } [me@linuxbox me]$ |
there doesn't seem to be any problem with the syntax of that function
Quote:
$ emacs today_date Quote:
$ ./today_date Today's date is: Wednesday, December 26, 2007 |
shell scripting
try saving it in a file,
can u show how to do that? thx alot for ur help :) |
oh yes i see
thx |
thanks a million
now it worked, guess it was the last two lines that were missing ! maya |
All times are GMT -5. The time now is 03:59 PM. |