desktop clearning
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,
>
> #!/bin/sh
> cd </home/shali/Desktop/dclearn>
> dir=$(mktemp -d -p /tmp)
> mv <2.cpp 3.java> $dir
> rm -r ./*
> mv $dir/* .
> rmdir $dir
>
>
> error
>
> ./desktopclearning.sh
> ./desktopclearning.sh: line 3: syntax error near unexpected token
> `newline'
> ./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.
>
>
>
> --
> Shali.K.R
> Asst.Librarian(Digital)
> Vidya Academy of Science & Technology
> Thrissur, Kerala.
> Mob:9846303531
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
--
♐ Rules!!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071116/b745fc11/attachment.html>
More information about the ubuntu-users
mailing list