Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
PSI variable
Name: sue Date: January 12, 2003 at 03:11:33 Pacific OS: Sun Solaris CPU/Ram: P4/2GB
Comment:
I have this PS1='$PWD$' in my korn shell script Can you tell me what will that do?? is it something to do with my command prompt.
Name: James Boothe Date: January 12, 2003 at 09:08:14 Pacific
Reply:
Yes, PS1 defines your primary prompt string, which can be a simple string such as '$ ' or for ksh it can be an expression, such as your present working directory.
PS2 is your secondary prompt string when it knows it needs to prompt for more:
PS2='more please: ' print "This is a continued line"
Summary: Shell Scripting -- Variables In the main script i have exported the variable and accessing it in another file but when i echo the value the value of the exported variable is not viewable . below are ...
Summary: I am having trouble exporting variables set in a script to a function inside the script. 1. The variable must be set outside the function because it will be called outside as well as inside the functi...
Summary: Hi I have a string in one variable str1="'abcd '" and i want to replace spaces with * and result in another variable str2. Pl. help me how to do with shell script. str1="'abcd '" str2 should b...