Joel Bryan Juliano
joelbryan.juliano at gmail.com
Fri Nov 16 05:45:05 UTC 2007
On Nov 16, 2007 1:17 PM, Shali 9846303531 <shalib2 at gmail.com> wrote:
> Dear sir,
> when i am trying to executing the script the following error will come
> ,what is this sir,
> cd </home/shali/Desktop/dclearn>
> dir=$(mktemp -d -p /tmp)
> mv <2.cpp 3.java> $dir
> rm -r ./*
> mv $dir/* .
> rmdir $dir
> ./desktopclearning.sh: line 3: syntax error near unexpected token
> ./desktopclearning.sh: line 3: `cd </home/shali/Desktop/dclearn> '
This is a real dangerous script, I suggest not to post them..
Try to learn the comparison between /bin/sh (dash) and /bin/bash, if your
not going to use bashisms in your script.
Also, < (less than) and > (greater than) signs are used for redirecting
outputs, TO and FROM a file.
> Vidya Academy of Science & Technology
> Thrissur, Kerala.
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the ubuntu-users