[LUNI] Shell script question.

Joe Frost joe at the-frosts.org
Tue Jan 29 09:25:54 CST 2008


On Tue, 2008-01-29 at 05:30 -0800, Richard Reina wrote:
> Kristian,
> 
> Thanks for your reply.  However, I must still be missing something.
> 
> When I do:
> 
> #!/bin/sh
> 
> file=.foo.barxvf
> 
>  echo -en $file | cut -d '.' -f 2 $file
> #end
> 
> I get:
> 
> cut: .foo.barxvf: No such file or directory

You don't need the $file at the end of the cut command.  The output from
the echo command is being piped through it. 

I'd figure out what's responsible for that wacky name and make it change
it to something you expect.  It looks like it's a temp name and it's not
changing it back to what it should be.

Joe





More information about the luni mailing list