8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hey everyone, just now joined because I didn't want to go onto Ubuntu forums and start asking about how to write shell scripts. Seems like this is a pretty active forum for exactly what I need.
I'm trying to modify a shell script I found online, the end goal is to have it find all files in the... (9 Replies)
Discussion started by: mozzles
2. UNIX for Dummies Questions & Answers
Here is the script I wrote... Pls. help.
for SERVER in
/usr/bin/scp "/home/sam/bash.tar root@$SERVER":/tmp
Error msg I get:
./scp_script.sh: syntax error at line 3:... (2 Replies)
Discussion started by: samnyc
3. Shell Programming and Scripting
Im trying to make a script that simply adds a word to the last available line in a txt file without overwriting any previous lines.
Ive googled this and there are great examples but no one explain what each function does, and i dont entirely understand how it works.
Basically Im looking for... (7 Replies)
Discussion started by: kylecn
4. Homework & Coursework Questions
first off let me introduce myself. My name is Eric and I am new to linux, I am taking an advanced linux administration class and we are tasked with creating a script to add new users that anyone can run, has to check for the existence of a directory. if the directory does not exist then it has... (12 Replies)
Discussion started by: pbhound
5. Shell Programming and Scripting
Hi everybody :( :confused: :D,
I need someone to help me! I have a file with 4 colunms and I would like to transform only the 4th colunm by multiplying this by a constant value (i.e 0.3047). I'm a new one using/creating basic scripts and I'm using linux redhat.
The file has the following... (1 Reply)
Discussion started by: Estanislau
6. Shell Programming and Scripting
What is the basic syntax for a script that says
do you want to do this?
y - execute this
n - end
not y or n - end and print this
for example if I want to run this:
"Do you want to start this process?"
if y,Y, or yes
run the following script (do I put the script with... (10 Replies)
Discussion started by: llsmr777
7. Shell Programming and Scripting
a) Total number of words in the file.
b) Total number of different words in the file.
How can I use the translate and/or unique commands to accomplish this (4 Replies)
Discussion started by: EECSDAVE
8. Shell Programming and Scripting
I have a list of over 400 users that need certain directories created. These will be created in /users/$username on a system and I need a directory called chess under these directories that I create.
Instead of me manually adding each one (mkdir /users/user1, mkdir /users/user1/chess)... (1 Reply)
Discussion started by: kjbaumann