Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] two secure questions



******    message to minivend-users from Murray Gibbins <murray@scotweb.ltd.uk>     ******

Murray Gibbins wrote:
> 
> ******    message to minivend-users from Murray Gibbins <murray@scotweb.ltd.uk>     ******
Heres how I've just done it 

[murray@handle murray]$ echo "cat \$1 | sed -e 's/wib/wob/' > \$1.tmp ">tmp.test
&&  echo "mv \$1.tmp \$1" >>tmp.test
[murray@handle murray]$ chmod 755 tmp.test 
[murray@handle murray]$ echo wib > tmp.tmp
[murray@handle murray]$ find ./ -name tmp.tmp -exec ./tmp.test {} \;
[murray@handle murray]$ cat ./tmp.tmp 
wob
[murray@handle murray]$ 


Hope this example helps :-)




> 
> --
>   ____
>   \__/    Murray Gibbins             murray@scotweb.ltd.uk
>   /  \    Programmer
> _ \__/ _  ================================================
> \\ || //  Scotweb Limited,             info@scotweb.ltd.uk
>  \\||//   13a Albert Terrace,    http://www.scotweb.ltd.uk
>   \||/    Edinburgh EH10 5EA   Tel: +44 (0)  131 270 82 33
>    ||     Scotland. Europe.    Fax: +44 (0) 7020  93 49 04
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

-- 
  ____
  \__/    Murray Gibbins             murray@scotweb.ltd.uk
  /  \    Programmer
_ \__/ _  ================================================
\\ || //  Scotweb Limited,             info@scotweb.ltd.uk
 \\||//   13a Albert Terrace,    http://www.scotweb.ltd.uk
  \||/    Edinburgh EH10 5EA   Tel: +44 (0)  131 270 82 33
   ||     Scotland. Europe.    Fax: +44 (0) 7020  93 49 04
-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: