[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
H*e*l*p Needed
I keep forgetting that the server won't let you use certain words in the
subject line. I don't see why. It is a pain.
I have a bunch of data where I wrote the wrong values into CRVAL1 and
CRVAL2. I need to do a global edit on the files.
OK, I have learned some things about perl and shell scripts. So I can
march the files through a process.
Last time I needed to do this, perl -p -i -e 's/foo/goo/g'
*.fits did the job. This is because I needed to change one specific
thing to another specific thing. Now I need to change CRVALs which may
have any value to a specific value. OK this is no doubt 1st grade perl but
I am still in kindergarten. Someone who knows will save me spending a
couple of days trying to decode sequences like ./*\a@\n&$/ which seem to
make perl programmers very proud when they write them.
Tom Droege