Search Results

Search: Posts Made By: deo_kaustubh
770
Posted By deo_kaustubh
List and copy dir remotely using shell script
Hi,

I am looking for a way to copy the directory on a remote machine that's present on the same remote machine.

ex. I have multiple directories on a remote machine "B" created as
...
1,111
Posted By deo_kaustubh
pl ignore the title
pl ignore the title
1,111
Posted By deo_kaustubh
Reading a file into an array
Hi I have a file with contents as below :

server | ABC Issue : File System Missing XYZ Issue : Wrong Syntax PQR Issue : Old File to be removed

Now I am looking for an o/p similar to

server...
1,319
Posted By deo_kaustubh
Thanks.. I quite didn't understand how do I pass...
Thanks.. I quite didn't understand how do I pass the input file as an argument ??
1,319
Posted By deo_kaustubh
Thanks. but function asort doesn't seem to be...
Thanks. but function asort doesn't seem to be working for me
1,319
Posted By deo_kaustubh
awk program
I have a csv file as below :

NAME,5a-6a,6a-7a,7a-8a,8a-9a,9a-10a,10a-11a,11a-12n,12n-1p,13p-14p,14p-15p,15p-16p,16p-17p,17p-18p,18p-19p,19p-20p,20p-21p,21p-22p,22p-23p,11p-12m, TOTALS...
1,670
Posted By deo_kaustubh
The o/p I am looking for should be : svcname...
The o/p I am looking for should be :

svcname 2a-3a Avg Rep
svc300 78/16622.60 4100/316.27

Here, since only svc300 is having avg reponse time >= 0.1 (i.e. 316.27) it...
1,670
Posted By deo_kaustubh
Thanks bud.. ---------- Post updated at...
Thanks bud..

---------- Post updated at 06:03 AM ---------- Previous update was at 05:02 AM ----------

one more requirement has arose :
The threshold is 0.1 for Avg response time. So, only...
1,670
Posted By deo_kaustubh
Formatting a file using shell script
I have a file with contents something similar to as below :
...
4,312
Posted By deo_kaustubh
Symbolic links in UNIX
Hi,

I have a file with more than 1 layers of soft links for it. For ex.

ls -la .profile
.profile@ -> /home/act/.profile_abc
ls -la
/home/act/.profile_abc@ -> .profile_final

I want to...
1,130
Posted By deo_kaustubh
ssh help
Hi,

I have a script which I want to execute on a remote machine using ssh.

I am using ssh boxname -n "script.sh [ARG1]"

Depending upon the parameter passed it picks up the .profile to be...
2,597
Posted By deo_kaustubh
Shell script to manipulate a file
Hello,

I have a file with following contents :

WSL SRVGRP=LISTENER SRVID=2
CLOPT="-A -t -- -n 0x0002aa050a03cc65 "
RQPERM=0660 REPLYQ=Y RPPERM=0660...
1,816
Posted By deo_kaustubh
Thanks summer_cherry, but this code does not add...
Thanks summer_cherry, but this code does not add up the last column if values of 1st & 2nd columns are same.
1,816
Posted By deo_kaustubh
Thanks for that piece of code. However, looks...
Thanks for that piece of code. However, looks like there's some misunderstanding the in the expected output which I have mentioned. The final column is the count of MIN value with same first & second...
1,816
Posted By deo_kaustubh
Perl file processing
I have an input array like :

"SVR1" GRP="EVT_BOX06B" SRID=100 MIN=2
"SVR1" GRP="EVT_BOX06B" SRID=200 MIN=1
"SVR2" GRP="ADM_BOX06B" SRID=100 MIN=1
"SVR1" ...
6,539
Posted By deo_kaustubh
Thanks pludi. it works !!
Thanks pludi. it works !!
6,539
Posted By deo_kaustubh
Perl:Use of array elements in pattern matching
I need to use array elements while pattern matching.

@myarr = (ELEM1, ELEM2, ELEM3);

following is the statement which I am using in my code. Basically I want to replace the ELEM1/2/3 with other...
2,187
Posted By deo_kaustubh
Thanks summer_cherryfot the code. I am looking...
Thanks summer_cherryfot the code. I am looking for a more generic form of the code. COLOR & MatchSpace has been hardcoded to get the desired result. If you can give me more generic form of the code...
2,187
Posted By deo_kaustubh
Perl : Process a file in perl
I have a file with following data :

Qspace: COLOR: Queue: doColor
Qspace: COLOR: Queue order: fifo
Qspace: COLOR: Out of order: none
Qspace: COLOR: Retries: 5
Qspace: COLOR: Queue: setColor...
4,170
Posted By deo_kaustubh
Thanks pludi, it seems to be working... will I b...
Thanks pludi, it seems to be working... will I b able to use @array as a normal array for further processing ??
Just for my understanding can u explain me the use of Dumper which is being used in...
4,170
Posted By deo_kaustubh
Thanks Pludi for the quick reply. One thing...
Thanks Pludi for the quick reply.

One thing I forgot to mention earlier is that the Data which I posted is from an array & is not definite. I think there might be some changes need to be done...
4,170
Posted By deo_kaustubh
Perl : Search for next occurence of a word in an array
I have an array as follows:

Space: ABC
Name: def
Age: 22
Type: new
Name: fgh
Age: 34
Type: old
Space: XYZ
Name: pqr
Age: 44
Type: new
:
:

How can I separate the array with elements...
1,873
Posted By deo_kaustubh
This is basically an array output ( I have put...
This is basically an array output ( I have put Qspace in bold to make it easy to understand). If you notice the Queue doCol & setCol are two different Queue names inside the same Qspace ABC & each...
1,873
Posted By deo_kaustubh
Processing a file in perl
Qspace ABC
Queue doCol: true
Queue order: fifo
Queue setCol: red
Queue order: fifo
Qspace XYZ
Queue getCol: true
Queue order: fifo

I need to append every line in this file with Qspace &...
1,281
Posted By deo_kaustubh
yes..its gonna be an input file inside my main...
yes..its gonna be an input file inside my main script.
Showing results 1 to 25 of 37

 
All times are GMT -4. The time now is 10:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy