10 More Discussions You Might Find Interesting
1. Solaris
Hi, I need help changing PS1 in Solaris. I tried this:
MYPROMPT="> "
PS1=$LOGNAME@$HOSTNAME:${PWD}$MYPROMPT (NOT SURE WHY IT'S HIGHLIGHTED HERE)
export PS1
My problem is that $PWD is not working, when I get the prompt and I change directories, the prompt is not displaying the current... (17 Replies)
Discussion started by: curiousmal
17 Replies
2. Shell Programming and Scripting
I have coded PS1 as shown, producing the following result when writing on the command line
┌─ cdl
└──╼ make tracepdf2d
If I make an error in the command an ✗ is printed
┌─ ✗ cdl
└──╼ ls-a
ls-a: command not found
My problem is that if I just press enter, I do not want to have the... (3 Replies)
Discussion started by: kristinu
3 Replies
3. UNIX for Dummies Questions & Answers
Hi i'm new to unix, can anyone assist in me setting the PS1 variable in unix (3 Replies)
Discussion started by: user@123
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am using git bash terminal window to do git operations. I have set the prompt string variable PS1 in the ~/.bashrc file as follows:
export PS1=" "
This is intended to show me the current git branch's name which is active as part of the prompt string. But, the problem is when I do a git... (2 Replies)
Discussion started by: royalibrahim
2 Replies
5. Homework & Coursework Questions
This is a problem with basic Unix scripting. Thanks for looking!
1. The problem statement, all variables and given/known data:
Make a script that will compare 2 given directories and output those filenames that are in Directory 1 and not 2
2. Relevant commands, code, scripts, algorithms:... (1 Reply)
Discussion started by: iamhungry
1 Replies
6. Shell Programming and Scripting
please tell me what is "!" mean in below value of PS1 variable
PS1='($PWD) !>'
Thanks Sunny (3 Replies)
Discussion started by: sunilmenhdiratt
3 Replies
7. Shell Programming and Scripting
I know many will probably say go read some tutorials...I would like to say that I am. However, I need to know this for work and it needs to be done soon.
In my script I have a while loop that reads a .tbl file of 4 columns and assigns them to variables a, b, c, d.
Once in the loop i do
... (10 Replies)
Discussion started by: questionasker
10 Replies
8. Shell Programming and Scripting
I have a variable:
$FILENAME = /XXXX/XXXX/XXXX/file.dat
I want to set another variable that will give me this:
$FILENAME2=filea.dat
So basically i'm chopping up variable $FILENAME.
Not sure cut will do this as i'm looking at different directories so the characther length may be... (2 Replies)
Discussion started by: Pablo_beezo
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I am trying to set my current prompt with the current directory iam working on by $PS1=$PWD but it is blank.
please help. (4 Replies)
Discussion started by: papachi
4 Replies
10. UNIX for Advanced & Expert Users
I want to set my prompt to something more descriptive than a plain old $, so I set the PS1 variable as such:
PS1=""
Which changes the prompt correctly, but when I change directories, it does not update the prompt. So I tried this:
PS1="`pwd`>"
I get the same results when changing... (2 Replies)
Discussion started by: dangral
2 Replies