10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can any one help me here.I'm getting whole files name of the directory along with the grep result.
below is the code
var=`grep -i '127.3.3.1' _record`
echo $var (9 Replies)
Discussion started by: netdbaind
HPUX does not recognise \h,\w,\u to display the hostname,working directory and username respectively.
So how do i set the PS1 variable to display my current working Directory as my prompt?
I also tried PS1=$PWD,
But it keeps showing the same directory path as prompt which PWD was holding at... (3 Replies)
Discussion started by: Amit Kulkarni
My var directory is showing near to 100% ? What are the files should i delete to make it less??
# bdf -i
Filesystem kbytes used avail %used iused ifree %iuse Mounted on
/dev/vg00/lvol3 1048576 107616 933616 10% 3342 29394 10% /... (10 Replies)
Discussion started by: yadvinder
4. UNIX for Dummies Questions & Answers
Assume that you want to set your prompt to display the current working directory followed by a percent symbol and then a space. The command pwd can be used to display this information, so explain why the following command does not have the expected result:
set prompt=" `pwd`'%' "
Its a... (7 Replies)
Discussion started by: Blockshelf
5. Shell Programming and Scripting
This is our prompt at the moment
oracle@pinkipinki:/opt/oracle> grep 'set prompt' .cshrc
set prompt = "$user@`uname -n`:$cwd> "
We wish to have in production the same prompt, but red.
Howto do that? I tried a lot a internet manuals, but it doesn't work. (1 Reply)
Discussion started by: slashdotweenie
6. Shell Programming and Scripting
I want to set a timeout say 10 sec to shh prompt i.e. if no password is enetered for 10 sec prompt should again come to shell.
How can this be achieved ??
I am using Linux RHEL 5 and Solaris 10.
Thanks in adv.
VIKAS (3 Replies)
Discussion started by: vikas027
7. UNIX for Dummies Questions & Answers
I'm using a csh shell (or, that'd be my guess from the .cshrc file I see) and I'm looking to change my prompt.
There are about 10 other threads, I know, but this question is a little more specific. I want to know, is there a way to list the current directory from a certain level or directory... (6 Replies)
Discussion started by: HybridLogic
8. UNIX for Dummies Questions & Answers
I need a one line command called cd (must also still function as cd) and will allow the prompt to change to the cwd. All I can figure out is to change the .cshrc but there must be an easier way in a one line command no? (1 Reply)
Discussion started by: petter_uk
9. UNIX for Dummies Questions & Answers
hi, this < setprompt 'set prompt="# "' > is set in C shell. what is the equivalent in sh?
thanks (14 Replies)
Discussion started by: yls177
10. UNIX for Dummies Questions & Answers
ok, there is a way to nicely kill a suspended job and to terminate another without using the mass -KILL command.
also, how can I set my prompt temporarly without using the .bash_profile that uses the PS1.
Thanks:) (1 Reply)
Discussion started by: bitwize