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
9 Replies
2. UNIX for Dummies Questions & Answers
Here is the script I wrote... Pls. help.
#!/bin/ksh
for SERVER in
NEWSNYD403P
NEWSNYD404P
SNEWSNYD601P
SNEWSNYD602P
SNEWSDNY603P
SNEWSNYD604P
do
/usr/bin/scp "/home/sam/bash.tar root@$SERVER":/tmp
done
Error msg I get:
./scp_script.sh: syntax error at line 3:... (2 Replies)
Discussion started by: samnyc
2 Replies
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
7 Replies
4. Shell Programming and Scripting
I'm trying to approach a problem but all I'm coming up with are complex ways to manipulate the data. But still not getting the desired outcome.
directory of files....
file-100-foo
file-100-man
file-100-chu
Need to copy the files and increment the number in the file name
... (4 Replies)
Discussion started by: suphawk
4 Replies
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
1 Replies
6. 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
1 Replies
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
4 Replies
8. UNIX for Dummies Questions & Answers
What I am supposed to do is creat a menu with the following
Find a song
Find a album
Sort by artist
Delete a song
Add a new song
Quit
Now the file with the song information is database
Here is what I have so far
#!/bin/bash
#=================================================
#Script Name:... (1 Reply)
Discussion started by: stp0052
1 Replies