Unix administration - ksh command question

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > May 2005 > ksh command question





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author ksh command question
lucabrotsi

2005-05-11, 2:49 am

I would like a script but cant get it going:

1. ask to start, list files in /tmp that match foo.$DATE
2. Choose file associated with # (# of files found)
3. are you sure ? ( chance to back out )
4. issue command based on this file choice. ( remove , mailx contents or
scp)


is it easier to use function, case, menus ? or just a line command ?





Chris F.A. Johnson

2005-05-11, 2:49 am

On Wed, 11 May 2005 at 03:58 GMT, lucabrotsi wrote:
> I would like a script but cant get it going:
>
> 1. ask to start, list files in /tmp that match foo.$DATE
> 2. Choose file associated with # (# of files found)
> 3. are you sure ? ( chance to back out )
> 4. issue command based on this file choice. ( remove , mailx contents or
> scp)
>
>
> is it easier to use function, case, menus ? or just a line command ?


Yes and no, or some of, or all of, the above.

Please don't multi-post. If you feel a question belongs in more
than one newsgroup, please cross-post (put a comma-separated list
on the "Newsgroups: " line.

--
Chris F.A. Johnson <http://cfaj.freeshell.org>
========================================
==========================
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
<http://www.torfree.net/~chris/books/ssr.html>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com