help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Renaming file using wildcard


From: Daniel Parthey
Subject: Re: Renaming file using wildcard
Date: Mon, 6 Oct 2003 21:09:58 +0000 (UTC)
User-agent: slrn/0.9.7.4 (Linux)

Paul Dlug schrieb:

> How can I rename a file using a wildcard?
> Is there any way I can do something like:
> copy:
>    /etc/snmp/conf/_snmpdx.rsrc.JASS.* dest=/etc/snmp/conf/snmpdx.rsrc

How about using a buffer variable and obtaining the filename from shell?
  ...
  snmpdxfile = ( ExecResult(/bin/ls -l /etc/snmp/conf/_snmpdx.rsrc.JASS.*) )
  ...
  copy:
    $snmpdxfile /etc/snmp/conf/snmpdx.rsrc

Haven't tried that, but perhaps it works.

Daniel.
-- 
 __________________________________________________________________________
( Please use PGP : Key 0xE0F4216B is available at http://mykey.webhop.org (
 ) Fingerprint   : DC13 BB6B 8B2B FA52 DCC1 6650 339D 9528 E0F4 216B       )
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


reply via email to

[Prev in Thread] Current Thread [Next in Thread]