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
- Next message: laura fairhead: "Re: Checking user input"
- Previous message: Barry Margolin: "Re: needing assistance on formatting output"
- In reply to: Andrew Falanga: "Re: Capture what's being passed to a KSH interpreter"
- Next in thread: Juergen Heck: "Re: Capture what's being passed to a KSH interpreter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: laura fairhead: "Re: Checking user input"
- Previous message: Barry Margolin: "Re: needing assistance on formatting output"
- In reply to: Andrew Falanga: "Re: Capture what's being passed to a KSH interpreter"
- Next in thread: Juergen Heck: "Re: Capture what's being passed to a KSH interpreter"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|