Specific prompts would only indicate what are you running on or where you are. You've given the examples quite well : for example, however, the $ sign doesn't necessarily means bash, because the prompt itself can be modified to end with #. This can be achieved by modifying the PS1 variable in your respective shell profile file. I can't tell for other shells, but if you are in doubt just execute :
to understand what shell you are running on. For the rest of the questions - it will depend on what you are trying to achieve, jumping from shell to shell is not exactly usual, unless you work in multi-shell and multi-user environment.
Hi, I installed solaris 10 a few weeks ago. It was working fine during the past two weeks. However, now when I start to load to the drive, I get this problem:
The BIOS screen comes up like normal, then screen goes blank and a message "Grub loading stage 2" flashes real quick then the computer... (1 Reply)
Hello friends,
I want to add some features to the bash shell.I logged in as the root.Even then could not view the source code of bash shell in RH 9,Fedora 8.It is in encrypted form.Can you please tell me how to include my code into bash shell.
Please give me a sample code so that I can understand... (3 Replies)
Please help!
I have installed 5 Linux OS in the following order:
1st : OpenSUSE 11.0
2nd : Ubuntu 8.4
3rd : Ubuntu 8.10
4th : OpenSUSE 11.1
5th : Fedora 10
Here is the scenario, at the 4th installation i can still choose which OS to boot as what OpenSUSE grub displays. Now, after... (3 Replies)
My script needs to read a variable from the user. But before the user types the input, I want to give a default value so the user can edit the default value for input.
How can I implement it?
My script is something like:
#!/bin/sh
read -p 'Port number: ' -e port_number
echo "Port... (7 Replies)
I' trying to use bash to edit a csv file from this format:
"apples","oranges","grapes"
"bread","butter","milk"
To this:
"apples
oranges
grapes"
So that if I would open the csv file in open office,
"apples
oranges
grapes"
Would be in one single cell, and
"bread (2 Replies)
Hi,
Can we specify which grub.conf to use while installing grub on RHEL.
We are working on application which requires different grub configurations needed, depending on certain criteria we need to update grub with correct grub.conf.
Can we use grub-install for this purpose? (4 Replies)
so assume I have a dozen files in local directory and half of them are .txt and I only want to scan these text files and go inside each of them and replace absolute paths (e.g. C:\blabla\more blahblah\myfile.txt) with just the name of that file (myfile.txt) and then go to next line and look if... (6 Replies)
Dear Masters,
i have a problem with unix script, till now i just know about how to create header.
i want to change file below
-63395.2 72653.5
-63361.3 72696.0 ... (9 Replies)
I'm working on a script to execute a number of items. One being, editing particular files to add certain lines. I'm attempting to utilize sed, but, having issues when running from a bash script. Assistance is greatly appreciated.
My example:
sed -i '14 i\
# add these lines
add these lines to... (5 Replies)