Search Results

Search: Posts Made By: jambesh
10,218
Posted By jambesh
Excellent @Corona Thanks much for your time
Excellent @Corona Thanks much for your time
10,218
Posted By jambesh
Thanks but i need the entire records - not the...
Thanks but i need the entire records - not the date/time part and also your out put has AM/PM which is not needed .

Ex. Input records :
Nov 2 2011...
10,218
Posted By jambesh
Military type format date/time conversion
Hello All,

I have a requirement to convert a 12 hour format to 24 hour time format and the sample input /out put is below

Input Time format : Nov 2 2011 12:16AM
Out Put Format : Nov 2...
2,503
Posted By jambesh
Extracting Max date for multiple same key
Can any one help me to sort and extract the max date row from multiple same key ?

example of input file
kEY DATE(YYY-MM-DD)

10 2011-08-01
20 2011-09-02
20 2011-10-01
20 2011-08-02...
6,161
Posted By jambesh
Regular expression to extract ipv6 address
Hi all ,

I have a string in my weblog xheader v6-day-2011:xx:yy:zz:qq:qq:ww:ee:rr

My requirement is to lookup the sting v6-day-2011 in this header and if found would like to extract the V6 ip...
3,065
Posted By jambesh
Perl regular expression - To match a Dynamic URL
Hello All,

I have a requirement to match a dynamic url and extract each of the directory and page and store it -Only PERL style Regular EXP as it will be used in informatica - REG_EXTRACT...
3,184
Posted By jambesh
MANPATH undefined error
Hello All,

I m using Linux OS and the default shell is C shell.

Till today the startup file (.login ) was invoking first and the environment variable set there working properly but after some...
7,966
Posted By jambesh
Thanks Zaxxon - I have no idea on any audit...
Thanks Zaxxon - I have no idea on any audit tool.

I thought the sudoers file might have this kind of information and a sysadmin will be able to tell all these info.
But i was told the same thing...
7,966
Posted By jambesh
Finding the list of users who modified a file
Dear all,

Need a quick help/suggestion on monitoring a particular directory .
We have a deployment directory say (/users/integration/deploy ) under this there are several files which can be...
6,266
Posted By jambesh
passing variable to sed command not working
Hello All,

I am trying to embed variable in sed command to fetch a portion of record between two pattern.



This command is not working ...any suggestion on this how to place the variable in...
Forum: Web Development 04-20-2010
5,060
Posted By jambesh
Thank you jlliagre It worked , I got the...
Thank you jlliagre
It worked , I got the required information
Forum: Web Development 04-20-2010
5,060
Posted By jambesh
How to check the Version of Netscape web server
Hello All,

I would like to find/check the Netscape webserver version installed in my solaris unix box. Where to check the info and how i will do that .

I know that Netscape webserver is...
6,300
Posted By jambesh
Thank You Franklin for your help .. It worked as...
Thank You Franklin for your help .. It worked as expected.
Thanks again for your time
Can you tell me what the number 1 would do at the end of the script .

This is a nice piece of code - If you...
6,300
Posted By jambesh
Clarify more on the requirement
Thank you all for responding me - however the requirement was different .

let me clarify it in more simpler -

Input file -
...
6,300
Posted By jambesh
Sum of column by group wise
Hello All ,

I have a problem with summing of column by group

Input File -


COL_1,COL_2,COL_3,COL_4,COL_5,COL_6,COL_7,COL_8,COL_9,COL_10,COL_11
3010,21,1923D...
2,249
Posted By jambesh
1) take the size of the files in local host ...
1) take the size of the files in local host
2) take the size of file after sftp from remote host
ssh -n remote_host ls -ltr file | awk '{print$5}'
##This will give you the size of...
6,040
Posted By jambesh
ls -1 *out.txt | while read rec do mv $rec...
ls -1 *out.txt | while read rec
do
mv $rec /your/destination/dir/${rec%.*}
done
7,226
Posted By jambesh
Hi , The quick fix is to enclose your email...
Hi ,

The quick fix is to enclose your email address string in a single quote and not in double quote

Try this it will work :

$_ = 'somename@address.com';
4,065
Posted By jambesh
Few thing that you can start with to convert this...
Few thing that you can start with to convert this into perl -

1) File opening /Reading from file/Writing to a file/Executing a script
2) Condition checking (file exist ?)

You can open the...
8,129
Posted By jambesh
ls -1 | while read line do echo $line ...
ls -1 | while read line
do
echo $line
done

Note : ls -1(One) and Not l

You can redirect the output of ls -1 to a file and just do the same thing using a cat
Hope this helps
4,183
Posted By jambesh
Remove the semicolon after the if statement...
Remove the semicolon after the if statement that is not require unlese you are keeping your then in the same statement -- remove all semicolon from the end of if statement and try

When you put...
1,876
Posted By jambesh
Use csplit command to this (Context based...
Use csplit command to this (Context based spliting a file)

man csplit
3,787
Posted By jambesh
--Update
---------------
It is syntactically correct in my system -Pls check the compilation out put

----
bash-3.2$ cat mail.pl
#!/usr/bin/perl -w
use strict;
use warnings;

my $baseDir =...
3,787
Posted By jambesh
can you just paste the out put of your perl path...
can you just paste the out put of your perl path from which perl command

You can check if the path to the module are in @INC path ?
type in command promt :

perl -e 'use strict;'

if your...
3,787
Posted By jambesh
Seems your $cmd = ..... statement has wong...
Seems your $cmd = ..... statement has wong double quote -
Try -
my $cmd = "uuencode $attachment |mailx -s $subj -c $cc $to -f $from";
Why are you making single quote around the mail options ?
...
Showing results 1 to 25 of 153

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