10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I apologize for the title but I am not even sure myself what to call this. I am going to use an example of a pizza delivery. I need to make an interactive script that allows users to order a certain number of pizzas, and then choose what they want on each pizza. Here is my code so far....
... (1 Reply)
Discussion started by: cstadnyk1
1 Replies
2. Shell Programming and Scripting
Hello,
I wonder if it my problem can be solved. Inside File1.txt, there are 3 columns. Inside File 2.txt, contain certain variable(in this case, only "3"). So I want to : (copy File 1 x Variable in File 2). Expected result are File 3.txt.
Any help are really appreciated.
File 1.txt
-92.033... (4 Replies)
Discussion started by: guns
4 Replies
3. Shell Programming and Scripting
hey mates,
I was wondering if someone could assist me with this one, I have couple scripts that I would like to invoke from .sh ( One after another )
Script1
Script2
Script3
Is it possible to run script 2 after script one finished running ? And again start script 3 after script 2... (6 Replies)
Discussion started by: NDxiak
6 Replies
4. Shell Programming and Scripting
How can using Vim, replace one character with another repeating it 10 times?
Ex.:
Transforming this: 125A986
That: 125##########986 (12 Replies)
Discussion started by: IJNeves
12 Replies
5. Shell Programming and Scripting
Hi,
I wrote a awk line here:
awk 'BEGIN {OFS="\t"} {print $0, int(rand()*($2-$1 + 1) + $1) }' filename
Basically what it does is that it takes the start (column 1) and stop (column 2) and generates a random # in between start and stop.
I want to take this a step further and have it... (2 Replies)
Discussion started by: phil_heath
2 Replies
6. UNIX for Dummies Questions & Answers
For some reason my crons are being executed twice. Any suggestion?? I'm currently on 5.8 (2 Replies)
Discussion started by: shorty
2 Replies
7. Shell Programming and Scripting
I am developing a script to automate Global Mirroring on IBM DS8100's. Part of the process is to establish a global copy and wait until the paired LUN's Out of Sync tracks goes to zero. I can issue a command to display the ouput and am trying to use AWK to read the appropriate field. I am... (1 Reply)
Discussion started by: coachr
1 Replies
8. Shell Programming and Scripting
I am developing a script to automate Global Mirroring on IBM DS8100's. Part of the process is to establish a global copy and wait until the paired LUN's Out of Sync tracks goes to zero. I can issue a command to display the ouput and am trying to use AWK to read the appropriate field. I am... (0 Replies)
Discussion started by: coachr
0 Replies
9. Shell Programming and Scripting
Hi,
I need to send "^[" command to the buffer.
I tried to use insert within VIM and press 'ctrl' key and then '^' and '[' key.
but it didn't work.
Does anyone know how to do it?
Thanks a lot!
Julie (2 Replies)
Discussion started by: cin2000
2 Replies
10. Shell Programming and Scripting
Hi,
I am stuck with pattern matching.
I need to match a particular pattern several times in a same line and replace them.
for ex.,
I need to convert
(abc XY) (bvf ZY) bla bla
to
XY ZY bla bla
I tried..
s/\(+ (.+)\)/$1/gi
and it works (2 Replies)
Discussion started by: oldtrash
2 Replies