help-cfengine
[Top][All Lists]
Advanced

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

non-convergent file edit?


From: rader
Subject: non-convergent file edit?
Date: Tue, 16 Mar 2004 06:56:41 -0600

Assume...

 echo "01Jan70" > f

then is there a way to do

 mv f f.OLD && \
 cat f.OLD | perl -ne "s/\d\d\w\w\w\d\d/`date +%d%h%y`/; print" > f && \
 rm f.OLD

with editfiles??

Just curious.  Using shellcommands is a reasonable solution. 

steve 
- - - 
systems & network guy
high energy physics
university of wisconsin





reply via email to

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