9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey, im fairly new to unix and Im trying to make this unix project that would display a menu and do the following.
MENU
===========================
(p, P) Print users info
(a, A) Add new user
(s, S) Search user
(d, D) Delete user
(x,X) Exit
Enter your choice:
Trying to... (3 Replies)
Discussion started by: ultimaxtrd
3 Replies
2. Shell Programming and Scripting
Hi Master of masters,
Thanks for ur reply.
Need ur help for following. Is it possible to create menu for following in linux or a function.
> Look in logs > Status > Action > End Action
> CONFSUCCESS > Success > Show message as successful > Enter to continue
> CONFFAIL > Failure > Show... (1 Reply)
Discussion started by: rajeshwebspere
1 Replies
3. Shell Programming and Scripting
Hi All,
I need to create a file which contains the list of all the files present in that directory.
e.g.,
ls /export/home/user/*.dat > list_file.dat
but what i am getting is:
$ ls /export/home/user/*.dat > list_file.dat
/export/home/user/*.dat: No such file or directory
But I have... (1 Reply)
Discussion started by: pranavagarwal
1 Replies
4. Shell Programming and Scripting
Hi,
I need your help co create a very small menu somthing that look like this:
1. first step
2. second step
3. last step
from step : ___
to step : ___
If the user choose 1 --> it will echo : Hellow
If the user choose 2 --> it will echo : World
If the user choose 3 --> it will echo... (4 Replies)
Discussion started by: yoavbe
4 Replies
5. Shell Programming and Scripting
Hi
I am wanting to create a menu that will list all the log files in a specific directory such as /apps/logs.
So it would be something like this:
#!/bin/ksh
print 'Select The Required Log File'
PS3='log? '
select choice in <this is to contain a list of files that are in a directory that... (3 Replies)
Discussion started by: markrj
3 Replies
6. Shell Programming and Scripting
I am very new to Unix and know the basic commands. I have to write a script file and I'm completely lost. The script file is to show the following at the beginning:
Menu of Options
1. Display all files in a user's home directory.
2. Welcome yourself to the program.
3. Display System... (8 Replies)
Discussion started by: sinjin
8 Replies
7. UNIX for Dummies Questions & Answers
I would like to create a text file that contains the list (names of files and dirs) of a particular directory...
any ideas ? (5 Replies)
Discussion started by: hinman
5 Replies
8. Shell Programming and Scripting
I have a file that contains a list of names.
I need a loop that creates user accounts to all the names in the list
where username = names in file
password = username
Another question: how can i validate that a particular var is of 6 characters length
I need an if statement that will... (8 Replies)
Discussion started by: Laila Saif
8 Replies
9. Shell Programming and Scripting
Trying to alias rm to move files to a hidden trash directory in the bash shell. I've tried to create this alias numberous ways and it's just not working. Here's what I've tried, anyone have any suggestions.
alias rm='mv $* ~/.trash'
alias rm= 'mv$* ~/.trash'
things like that... I've also... (2 Replies)
Discussion started by: strmy_ngts
2 Replies