[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: command line problem



The usage of 'find' is not correct. Instead u may use:
find /tftproot/192.168.1.6/var/ -name "*" -type f -exec rm {} \;

Here "{}" is a special string (metacharacter). For more see "man find".

-Sridhar


> Hello - I am working on setting up a small Linux network with diskless nodes... There is a paper from Amit Kucheria..
> there is one command line which goes like this...
>
> find /tftproot/192.168.1.6/var/ -name '*' -type f -exec rm \{\};
>
> when I execute this command I get
>
> "find: missing argument to `-exec'
>


------------------------------