9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
2. Solaris
Defined a user alias in unix. Not able to use that alias in a ksh scritp. I dont want to change/source in the script to set the value. Need to set the user alias as a gloabal alias to use it in a new ksh shell window. Can you please help on this? (3 Replies)
Discussion started by: rbalaj16
3 Replies
3. Shell Programming and Scripting
It doesn't have effect in script but it works on the terminal
root@server:/opt/kvm/usecases/logs# alias echo='echo -e'
root@server:/opt/kvm/usecases/logs# echo "xxxx\n"
xxxx
root@server:/opt/kvm/usecases/logs# cat xx.sh
#!/bin/bash
alias echo='echo -n'
echo "sssf \n"
... (3 Replies)
Discussion started by: yanglei_fage
3 Replies
4. UNIX for Dummies Questions & Answers
If one:
$ find -name 'some expression' -type f > newfile
and then subsequently wants to create an alias file from each pathname the find command retrieved and the > placed within 'newfile', how would one do this? Ideally, the newly created alias files would all be in one directory.
I am... (3 Replies)
Discussion started by: Alexander4444
3 Replies
5. UNIX for Dummies Questions & Answers
I have an alias set on linux:
progs -> /home/user01/prog1.pl
the location of prog is changes to /home/user01/new/prog1.pl
so I need to modify alias, except I can not find where it is set. It is not in .bashrc or .profile, it is visible by "alias" command.
Sorry if it is trivial. (4 Replies)
Discussion started by: analyst
4 Replies
6. Shell Programming and Scripting
Hi all,
Could any one tell me how to use aliases in a script i have a large command which launches an application. I want to use alias in the script because i call the application many time in the shell script.
Thanks
Firestar. (5 Replies)
Discussion started by: firestar
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am using the below command to kill the firefox process i have opened in Redhat 5.
ps -ef|grep fire|grep -v grep|awk '{print $2}'|xargs kill -9
If i execute the above command in terminal it works good and kills session.
but when i use alias for that it is not working.
alias... (2 Replies)
Discussion started by: nokiak810
2 Replies
8. Solaris
Hello
whenenver i login to solaris server the prompt is displaying as #. i want to customize the promt with server name for all users.
how to customize the PS1 variable for all the users?.
Thanks for your help in advance.
regards,
Saravana (2 Replies)
Discussion started by: tsaravanan
2 Replies
9. Shell Programming and Scripting
Hi All,
as you can guess, I'm a newb here, and to shell scripting. I use Linux(CentOS) at home and want to get into scritping. I was creating some aliases on a Laptop the other day, and thought, god this is tedious, and then I thought, heck, why not use it as a 1st script project. Please see... (3 Replies)
Discussion started by: coolboarderguy
3 Replies