10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Extremely new to Perl scripting, but need a quick fix without using TEXT::CSV
I need to read in a file, pass any delimiter as an argument, and convert it to bar delimited on the output. In addition, enclose fields within double quotes in case of any embedded delimiters.
Any help would... (2 Replies)
Discussion started by: JPB1977
2 Replies
2. Shell Programming and Scripting
Hi, I have an N number of files in a directory. I like to write a shell script that would make identical plots for each one of these files.
The files have names such as:
t00001.dat
t00002.dat
t00003.dat
t00004.dat
t00005.dat
.
.
.
t00040.dat
i.e. the... (4 Replies)
Discussion started by: lost.identity
4 Replies
3. Shell Programming and Scripting
Hi guys, i have an executable file that contains several records and fields. One of the records has a variable filed that must be changed each time i want to execute the file. Would it be possible that i can use a loop to change the value of that field? Suppose that the field address is:
Record... (5 Replies)
Discussion started by: saeed.soltani
5 Replies
4. Shell Programming and Scripting
I am trying to create an Expect script that does the following:
1) Telnets to an IP address and logs in with user ID and Password
2) Issue a CLI command to the server that will output data of which I am particularly interested in a DS1 clock 'Slips' value. I want to be able to keep issuing... (0 Replies)
Discussion started by: dwightlaidler
0 Replies
5. Shell Programming and Scripting
I need to do something like this:for I in var1 var2 var3 ; do
$I = "Something calculated inside the loop"
doneObviously it doesn't work...but is it possible doing that in other ways?
Thanks in advance. (6 Replies)
Discussion started by: canduc17
6 Replies
6. UNIX for Dummies Questions & Answers
Hello every one i have an script in sco unix 5.06 to take a long archive over MOD drive and this script contains many line to change destination to DVD anyone can help to me for change this script to take backup on DVD instead of MOD
the attached script LzaModBed.engl (1 Reply)
Discussion started by: kaydream
1 Replies
7. UNIX for Dummies Questions & Answers
Hello friends,
i wrote a script which includes a couple of if-else loops but i have to change it to while-do loop as it is not allowed to use "break" in if-else loop in bash.
#!/bin/bash -x
NUM=`find . -name ufsdump_output1.txt | xargs egrep "End-of-tape detected"`
if ; then echo "OK!"... (6 Replies)
Discussion started by: EAGL€
6 Replies
8. Shell Programming and Scripting
Hi, I have a file with the following data
-0.00000 0.00000 0.00000 F F F
0.00000 0.00000 0.80000 F F F
0.50000 0.50000 0.60000 F F F
0.50000 0.50000 0.20000 F F F
-0.00000 0.00000 0.40000 F F F
I would like to change the last 3 lines from F F F to T T T. I tried looping each line but don't... (5 Replies)
Discussion started by: princessotes
5 Replies
9. Shell Programming and Scripting
Hello all I hope someone can help me. I am trying to convert something I wrote in C to bash.
But how do I go about reading more than one item at a time in a for loop?
i have been using this format for the loops in the bash script i have been building.
e.g.
for word in `cat -s... (4 Replies)
Discussion started by: Intense4200
4 Replies
10. Shell Programming and Scripting
Hi All,
My query is as below:
Am basically writing a parser script.
My input file has got some variables which are populated by the calling program.
callig program:
fun1("cat","dog","cow")
input.*
argument first
argument second
I want to write a script that should give me... (4 Replies)
Discussion started by: jisha
4 Replies