10 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Write a shell script that accepts two arguments. The two arguments are the
name of 2 files.
• If the arguments... (3 Replies)
Discussion started by: Scripter12345
3 Replies
2. Shell Programming and Scripting
If there's a file called example.txt with contents:
Foo
Bar
Baz
Goo
then I need to generate a shell script that has commands to reconstruct example.txt on another machine:
echo "Foo" >> example.txt
echo "Bar" >> example.txt
echo "Baz" >> example.txt
echo... (5 Replies)
Discussion started by: Yongfeng
5 Replies
3. Shell Programming and Scripting
Hi,
I need help in creating a array in shell scirpt.
I have a file which has following details.
hostname devices
device1
device 2
de
abcdmhs10 1234
2343
2353
3343
3435
2343
bcdfmhs11 2343
2443
3434
8874
0343
3434 (5 Replies)
Discussion started by: jpkumar10
5 Replies
4. Shell Programming and Scripting
echo -e "Enter in a username : \c"
read username
grep "^$username:" /etc/passwdWhat I'm trying to do is take in a username from my script and I need to be able to check if that username already exists. If it does the script should display a message saying that the user already exists and exit.
... (2 Replies)
Discussion started by: shadowcat
2 Replies
5. Shell Programming and Scripting
Hi, I'm new to UNIX shell programming... can anyone help in doing the following :
1) create a text file named "Model File" having following columns :
Name Number Physics Chemistry
2) prompt user to n rows enter the name, number, physics ,chemistry
3) display the entire columns and rows... (1 Reply)
Discussion started by: Mayuri P R
1 Replies
6. Shell Programming and Scripting
In OS X I'm currently writing a bash script that requires writing to preference file. I may eventually want to share it with users on other Unix-like OSs and would like to accommodate for that possibility ahead of time.
Most OS X applications save preferences in xml-format plist files. These... (4 Replies)
Discussion started by: airsmurf
4 Replies
7. UNIX for Advanced & Expert Users
Hi, i'm newbie in Unix.
How can i create my own database in unix shell?
Not to create a database through shell to MySql, oracle etc, but to create a completely mine database system through shell.
Please help me, give me directions, i'm desperate :( (1 Reply)
Discussion started by: vants
1 Replies
8. Shell Programming and Scripting
I have an assignment in my programming class to write a shell script that will use command line parameters, display the # of parameters, display all parameters on the command line and display the parameters $0-$9. I understand some of the code (I will be using 'n' to represent the count through... (1 Reply)
Discussion started by: plmahan
1 Replies
9. Shell Programming and Scripting
Can some one smart here help I need to create a shell script that does this below using vi editor.
decrypts a file (specified as an argument to the script) containing text which was encrypted using the ROT-13 algorithm. The decrypted text should be written to a new file leaving the input file... (1 Reply)
Discussion started by: master_6ez
1 Replies
10. Programming
Hi,
I am a student and I want to create a shell in C language.
The shell must be able to take commands(with arguments) from the user and execute them and show the results. Any help or ideas or any suggestions would be greatly appreciated.
Thanks (4 Replies)
Discussion started by: passat
4 Replies