10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all
I have created a script to allow me to gain a number of file times and how long they take to execute. I have been asked to get the average time for the log. The log will update every 5 minutes and never be empty.
141
152
157
161
168
169
171
179
202
207
229
651
666
714... (3 Replies)
Discussion started by: simpsa27
3 Replies
2. Shell Programming and Scripting
I have a line like below
a,blank,12,24
I want to add (12+24) at the end of the line or any where in the same line line
output:
a,blank,12,24,36 (2 Replies)
Discussion started by: Anjan1
2 Replies
3. Shell Programming and Scripting
i have to append a text file
grep for a word, if found, put comment in starting of the line.
here is an example
cat test.sh
bin/ksh
Hello World
Test Message
:wq!
search for "bin" word in test.sh file if found comment it out at starting of the line:
Output as follows:
#bin/ksh... (5 Replies)
Discussion started by: raghur77
5 Replies
4. Shell Programming and Scripting
Hi,
I have a problem where i have to hit multiple URL that are stored in a text file (input.txt) and save their output in different text file (output.txt) somewhat like :
cat input.txt
http://192.168.21.20:8080/PPUPS/international?NUmber=917875446856... (3 Replies)
Discussion started by: mukulverma2408
3 Replies
5. Shell Programming and Scripting
Currently I have a perl code to combine two different files.
#! /usr/bin/perl -w
use strict;
open FP1,"A.txt";
open FP2,"B.txt";
my ($l1,$l2);
while(1)
{
$l1=<FP1>; chomp $l1;
$l2=<FP2>; chomp $l2;
last unless(defined $l1 or defined $l2);
print "$l1 $l2\n";
}
close FP2;... (4 Replies)
Discussion started by: Tzeronone
4 Replies
6. Shell Programming and Scripting
Dear All
I have a script file like the following:
.....
.....
Variable_1 = 888
Variable_2 = 999
.....
MyExternalProgram Myfile
.....
The line MyExternalProgram Myfile will generate some number, Say 777
Now I hope I can output the result of above codes to a text file,... (2 Replies)
Discussion started by: littlewenwen
2 Replies
7. Shell Programming and Scripting
Hi;
I am scripting in Shell and i want to write output (on screen) to a text file?
... | tee gcsw/output.txt
doesnot work?
:(:( (6 Replies)
Discussion started by: gc_sw
6 Replies
8. Shell Programming and Scripting
Hi,
1st post...
Done a quick search for this so apologies if I've missed it.
Basically I want to output and and append several values generated by a csh script direct to an xls openoffice file, rather than send to txt file and then physically copy and paste to xls file.
Already I send... (4 Replies)
Discussion started by: scottyjock
4 Replies
9. Shell Programming and Scripting
hello,
iostat -En | grep Vendor | grep -v DV | awk '{print $1 $2}' | sort -u
returns
Vendor:HP
I want to append Disk to it. i.e.:
Disk Vendor:HP
how to do that?
thanks (8 Replies)
Discussion started by: melanie_pfefer
8 Replies
10. Shell Programming and Scripting
I have a command stream that will parse down an ftp DIR listing of a remote directory and return the name of the newest file that I am interested in. The command is
sed -e '/^d/d' sppay.listing |sed -n -e '/SPPAY/p'|sort -r -k 43M,45 -k 47,48 -k 50,54|sed -n -e '1p'|cut -c 56-99
and what it... (2 Replies)
Discussion started by: beilstwh
2 Replies