Search Results

Search: Posts Made By: vguleria
1,443
Posted By vguleria
There is one-for-one match and its not necessary...
There is one-for-one match and its not necessary that the id from input.txt is always found in status.txt, if its found then there is only one match.
No the order doesn't matter here.
1,443
Posted By vguleria
The OS is linux, it's a one time...
The OS is linux, it's a one time job(occasionally). these are offline files and not being updated. Need to make a process for future requirements.

Its not in DB.. actually these are application...
1,443
Posted By vguleria
Matching 10 Million file records with 10 Million in other file
Dear All,

I have two files both containing 10 Million records each separated by comma(csv fmt).
One file is input.txt other is status.txt.

Input.txt-> contains fields with one unique id field...
2,817
Posted By vguleria
This could be done only using ssh-keygen ...
This could be done only using ssh-keygen


Thanks,
VG.
2,817
Posted By vguleria
Use wget instead as follows: wget...
Use wget instead as follows:

wget ftp://<user>:<pass>@<ip_address>/</path/to/file>


Thanks,
VG
1,240
Posted By vguleria
sed -e s/temp_tab_a/A/g -e s/temp_tab_b/B/g -e...
sed -e s/temp_tab_a/A/g -e s/temp_tab_b/B/g -e s/temp_tab_[c-z]/X/g sach.txt


Regards,
VG
10,551
Posted By vguleria
Thanks for your help rikxik.
Thanks for your help rikxik.
10,551
Posted By vguleria
Hi Rikxik, thanks for the reply. But...
Hi Rikxik,

thanks for the reply.

But it's not working for me. let me elaborate:

my script has to get the last line in a file to a perl variable as a string. Now, the file has last line as...
10,551
Posted By vguleria
blank line deletion in a file using perl
Dear All,


I am looking for an option in perl using which i could delete empty lines in a file.

Or

the alternative of sed '/^$/d' <filename> in perl. Sed is not working in my perl script...
Forum: UNIX and Linux Applications 03-03-2009
6,626
Posted By vguleria
Thanks for the solution . It works gr8. :)
Thanks for the solution . It works gr8. :)
Forum: UNIX and Linux Applications 12-09-2008
6,626
Posted By vguleria
waiting for ssh response for seconds
Hi All,


I have to make an alert that'll wait for ssh response from the server for certain seconds, if no response is there in between it'll raise an alarm.

Havn't found any option for...
3,076
Posted By vguleria
Use: awk -F^ '{ if ((($1 != "M") && ($5 !=...
Use:

awk -F^ '{ if ((($1 != "M") && ($5 != "7")) || (($1 != "S") && ($5 != "2"))) print $0}' welcome > welcome1
3,076
Posted By vguleria
The command is working fine. just added two lines...
The command is working fine. just added two lines to the file contents:

S^E^2008^12G43^7
C^E^2008^ZAT08^14
S^E^2008^ZAR48^22
M^E^2008^0TL69^2
S^E^2008^FCB67^30
M^hi^vi^5^7
M^E^2008^0TL69^7
...
3,076
Posted By vguleria
Pls. show the contents of welcome.
Pls. show the contents of welcome.
3,076
Posted By vguleria
Pls. check your if condition. For the data not to...
Pls. check your if condition. For the data not to be copied the if condition should give FALSE.


Regards,
Vinod.
1,496
Posted By vguleria
Suggested usage: awk -F^ '{ if ( (($1 !=...
Suggested usage:

awk -F^ '{ if ( (($1 != "X") && ($5 != "3")) || (($1 != "S") && ($5 != "2")) ) print $0}' abc> xyz


Regards,
Vinod.
4,825
Posted By vguleria
We could use the following: awk '{print $0 "...
We could use the following:

awk '{print $0 " hi...."}' shell > shell1


Regards,
Vinod.
4,825
Posted By vguleria
Hi geetha, Pls. paste your file contents...
Hi geetha,

Pls. paste your file contents here and the output required out of it.

Regards,
Vinod.
Forum: Linux 11-20-2008
11,403
Posted By vguleria
Thanks for the reply csonhand, I also have...
Thanks for the reply csonhand,

I also have the trace of the server's /var/secure/log/messages which is something related to SCSI:

Sep 17 07:42:59 <MyHostName> kernel: scsi1:0:0:0: Attempting to...
Forum: Linux 11-14-2008
11,403
Posted By vguleria
It's found that the server gives some SCSI...
It's found that the server gives some SCSI related error. The problem occurs sometimes after 2 months and sometimes every week. Should i replace the server or what? Pls. suggest ?

Regards,
Vinod.
Forum: Linux 11-04-2008
11,403
Posted By vguleria
ssh_ exchange-identification: Connection closed by remote host
Dear All,

Recently our server has been giving the error:

"ssh_ exchange-identification: Connection closed by remote host"

The error causes the server to become in accessible via ssh and the...
1,134
Posted By vguleria
Hi, We can get the sir name as follows: ...
Hi,

We can get the sir name as follows:

awk 'BEGIN{FS=":"} /name:/{print $3|"cut -f4 -d\" \"" }' names.txt


Regards,
Vinod.
Forum: Programming 06-13-2008
11,990
Posted By vguleria
Hi, Your code is giving segmentation...
Hi,


Your code is giving segmentation fault due to wrong use of strcmp(str1,str2) function.

A string can't be compared using strcmp with a NULL pointer. Both the arguments should be not...
2,061
Posted By vguleria
Hi, Have used the following script for...
Hi,


Have used the following script for ftp automation.
Hope this'll help you.

#########################3
#!/bin/bash
USER=anonymous
PASS=redhat
ftp -i -n << END
open <IP_ADDRESS>
user...
1,646
Posted By vguleria
Hi Namish, Use the following to take backup...
Hi Namish,

Use the following to take backup of your files(or you can use 'mv' to move the files)

#***********************
#!/bin/bash
FILENAMES="*.track* *.xml *.vm* *.gz Trace* TRACE*...
Showing results 1 to 25 of 31

 

Featured Tech Videos

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