Search Results

Search: Posts Made By: ss_ss
1,860
Posted By ss_ss
Hi RudiC, Below im pasting the script which...
Hi RudiC,

Below im pasting the script which is running on 2 different servers and generating the files 348.csv & 349.csv (which we are trying to merge)


#!/bin/bash
F=eai_js_348.csv...
1,860
Posted By ss_ss
The server id is not intentionally put to the far...
The server id is not intentionally put to the far right, got messed up while posting.

In the input file also the nos would be below the server name and same is required in the output.

Tried a...
1,860
Posted By ss_ss
Hi Pamu/Rudi, Thanks for your inputs, it...
Hi Pamu/Rudi,

Thanks for your inputs, it worked well.

But still facing some formatting issues i.e. both the numbers are coming under one server name only.

Timestamp BRM...
1,860
Posted By ss_ss
Help with concatinating the data of 2 files
Hi All,

I am trying to merge to 2 files 348.csv & 349.csv using join,awk commands but not getting proper output:


cat 348.csv
Timestamp Server
...
3,785
Posted By ss_ss
Hi DGPickett, Also, could you please me...
Hi DGPickett,

Also, could you please me tell how can i use sudo user after logging to remote server.

Thanks

---------- Post updated at 07:04 AM ---------- Previous update was at 01:19 AM...
3,785
Posted By ss_ss
Merge the data from two servers into a single file
Hi All,

Need your inputs for the below.

I have 2 different servers 611 & 610, where i would be running two scripts. And would would be running one script from 611 at every 4 hours to merge...
72,781
Posted By ss_ss
Suppress the output of ping
Hi All,

I just wanted to know, is there a way to suppress the output of the following i.e. the output should not be written on the screen:


ping 10.1.23.234 -n 1

PING 10.1.23.234: 64 byte...
1,473
Posted By ss_ss
Thanks :b: got it working now. awk...
Thanks :b: got it working now.


awk '/^ERROR/{x=1}END{if (x!=1) system("mv s s.done")}' error.log.tmp1


---------- Post updated at 09:34 AM ---------- Previous update was at 09:01 AM...
1,473
Posted By ss_ss
Tried this: awk '/^ERROR/{x=1}END{if...
Tried this:


awk '/^ERROR/{x=1}END{if (x!=1) system("mv "s" "s"."done"")}' error.log.tmp1


But getting this:


Usage: mv [-f] [-i] [-e warn|force|ignore] f1 f2
mv [-f] [-i] [-e...
1,473
Posted By ss_ss
Help with awk stmt
Hi All,

I have a log file as:


cat error.log.tmp1
2010-07-06 23:18:34 Connection Available to xyztestftp.abc.com.my
2010-07-06 23:20:33 Connection Available to xyztestftp.abc.com.my
ERROR...
5,162
Posted By ss_ss
Thanks methyl, for your comments. :) I...
Thanks methyl, for your comments. :)
I incorporated them & now the log file is getting created.

Now I am not checking the ftp exit status instead just putting everything in one log file & greping...
5,162
Posted By ss_ss
Log file is not getting created & unable to grep error from it
Hi All,

Below is my code,what I am trying to do is redirecting output of ftp to a log file & then greping the errors but here I am unable to grep "Permission denied" error only & also the...
6,248
Posted By ss_ss
Ping options in HP-UX
Hi All,

Wanted to know is there any option in HP-UX like "ping -c" in AIX.

As I am using ping in a script and on the basis of its return value will perform some actions.

Thanks
1,228
Posted By ss_ss
Just not sure about my if-then-elif stmt. ...
Just not sure about my if-then-elif stmt.

Could you guys please let me know whether I am correct or not as I cannot actually transfer the files in the environment I am writing the script.

What...
1,228
Posted By ss_ss
Thanks Pludi & Kwanghyun Lee :)
Thanks Pludi & Kwanghyun Lee :)
1,228
Posted By ss_ss
FTP script
Hi All,

Below is the snippet of my code:


do
echo Transferring file $file
ftp -n $PRIMARY << END
quote USER $USER
quote PASS $PASSWD
cd $PORTOUT_ERRORDIR
put $file
END
FTPEXITSTATUS=$?...
4,348
Posted By ss_ss
Extract data from an XML file & write into a CSV file
Hi All,

I am having an XML tag like:


<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1[1]=????</security>
...
3,327
Posted By ss_ss
But the generalized version has lesser no of awk...
But the generalized version has lesser no of awk input lines than the specific ones as all the paths have been taken into variables :(

---------- Post updated at 04:40 AM ---------- Previous...
3,327
Posted By ss_ss
Troubling you again but i generalized it and...
Troubling you again but i generalized it and after generalization the output files are getting created but only with the header record i.e. detail n trailer records are not coming :(


#!...
3,327
Posted By ss_ss
Thanks a lot for your inputs, its working...
Thanks a lot for your inputs, its working absolutely fine.

And my mistake i didnt read file

Thanks & Regards :)
3,327
Posted By ss_ss
Could you please tell me in the piece of code...
Could you please tell me in the piece of code provided by you, where is the comparison part with the big file?

And here is my complete code appended with the lines given by you.


#!/usr/bin
...
3,327
Posted By ss_ss
Im bit confused do i need to put this in a while...
Im bit confused do i need to put this in a while loop?

Secondly the big file & the 3 small files are in different paths.
3,327
Posted By ss_ss
The output should be 3 files splitted from the...
The output should be 3 files splitted from the big file.

cat rnd.out1
2526716790000008947850036448540401014 R030007150692000
2535502720000000010100036165742685000...
3,327
Posted By ss_ss
compare & split files
Hi All,

I've 1 big file like:


cat nid_lec_rej_20090804_merged
10084MOCLEC 0408090061480739nid090804132259.03.148990533
2526716790000008947850036448540401014...
9,718
Posted By ss_ss
Thanks a lot, it worked :)
Thanks a lot, it worked :)
Showing results 1 to 25 of 75

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