Re: Capture what's being passed to a KSH interpreter

From: Chris F.A. Johnson (c.f.a.johnson_at_rogers.com)
Date: 09/09/03


Date: 9 Sep 2003 18:12:38 GMT

On Tue, 09 Sep 2003 at 13:44 GMT, Andrew Falanga wrote:
> "Chris F.A. Johnson" <c.f.a.johnson@rogers.com> wrote in message news:<bjir9h$jir32$2@ID-136730.news.uni-berlin.de>...
[snip]
>> Is there a file in that directory whose name begins with "-e"?
>
> Thank you very much for this suggestion which of course is correct. I
> found the file, which I'm still trying to figure out how one earth
> this person created the file. The file name was "something.a
> -envvariables_here". Normally, when calling the program in question,
> -env designates environment variables for that run. How on earth it
> ended up in the file name is something of a mystery.

    Creating such a file is easy: touch /path/to/-envvariables_here. Finding
    out why it was created is harder; it's probably a bug in a script.
 
> I do have one further question. Because I'm using HP-UX I'm using KSH
> '88 (I really don't know why, but it's all that comes with HP-UX), is
> there a way to parse through the variable I'm creating with the files
> to be archived and remove such information?

    Can you be more specific?

    If you have:

arch_file="file1.log file2.log file3.log file4.log file5.log"

    you can deal with each file in turn by:

for file in $arch_file
do
  : ## do whatever with $file
done

-- 
    Chris F.A. Johnson                        http://cfaj.freeshell.org
    ===================================================================
    My code (if any) in this post is copyright 2003, Chris F.A. Johnson
    and may be copied under the terms of the GNU General Public License


Relevant Pages

  • Re: Capture whats being passed to a KSH interpreter
    ... Thank you very much for this suggestion which of course is correct. ... -env designates environment variables for that run. ... How on earth it ... Because I'm using HP-UX I'm using KSH ...
    (comp.unix.shell)
  • Re: Capture whats being passed to a KSH interpreter
    ... Andrew Falanga wrote: ... > Thank you very much for this suggestion which of course is correct. ... > -env designates environment variables for that run. ... How on earth it ...
    (comp.unix.shell)
  • Re: Hey Mr. Hyde!
    ... > we humans put up around Earth, the influence of Earth's gravity does ... So the art of orbiting is "falling towards the Earth and missing" ... implemented in macros), namespace and parse/operator macros. ...
    (alt.lang.asm)
  • Re: A testing time..
    ... <SNIP> ... called a 'basic affront' to plutonism, ... It is likely that I was one of few American petrologists who read the ... the increasing curvature of the Earth. ...
    (sci.geo.geology)
  • Re: A testing time..
    ... Bruce Bathurst wrote: ... <SNIP> ... Earth History, pps 195-196) ... geology, and (with his "gift that keeps on giving" - namely Plate ...
    (sci.geo.geology)

Quantcast