Search Results

Search: Posts Made By: scriptscript
1,699
Posted By looney
by sed sed -i -e "s/exec/\$query1=\'exec/gi"...
by sed
sed -i -e "s/exec/\$query1=\'exec/gi" -e "s/^)/)\'/gi" -e "s/^\/\*.*//gi" file
1,699
Posted By rangarasan
Hi.. How about dynamic variable assignment. ...
Hi..

How about dynamic variable assignment.


perl -lne 'if(/exec/){$q="";$c=1;$qc++;}if($c){$q = join(" ", $q,...
1,313
Posted By Corona688
Python doesn't make a copy of the array when...
Python doesn't make a copy of the array when passed into a function, it passes a reference to the same array. More fundamental types would get passed by value instead.
1,740
Posted By bartus11
Take a look at Date::Calc - search.cpan.org...
Take a look at Date::Calc - search.cpan.org (http://search.cpan.org/~stbey/Date-Calc-6.3/lib/Date/Calc.pod) (Delta_YMD function specifically).
1,141
Posted By balajesuri
#! /usr/bin/perl -w use strict; my $VAR1 =...
#! /usr/bin/perl -w
use strict;

my $VAR1 = {

'SYS-7-CLI_SCHEDULER_LOG_STORED' => [
{
...
1,849
Posted By Subbeh
This is a start, the first column is the...
This is a start, the first column is the occurrence:

perl -F"\t" -lane '$_ =~ s/(type|state|TYPE)[0-9]/<$1>/; $h{$_}++; END{while (($k, $v) = each %h){print "$h{$k}\t$k"}}' file
1,758
Posted By durden_tyler
Please post the attempts you've made so far to...
Please post the attempts you've made so far to solve this problem.
1,934
Posted By rajamadhavan
#!/usr/bin/perl -w use strict; use...
#!/usr/bin/perl -w

use strict;
use Date::Parse;
my $datetime1="2007-12-31 16:50:00";
my $datetime2="2008-1-1 04:24:00";

my $epoch1 = str2time($datetime1);
my $epoch2 =...
4,542
Posted By rajamadhavan
The third argument is not required or can be set...
The third argument is not required or can be set to 0.

Please check the correct syntax here

Win32::kernel32 - search.cpan.org...
4,542
Posted By rajamadhavan
Did you try 'use Win32' ? ...
Did you try 'use Win32' ?

Win32::CopyFile(FROM, TO, OVERWRITE)
8,695
Posted By Skrynesaver
I think you misunderstood some advice from...
I think you misunderstood some advice from somewhere.

Content-type supplies a mime type for the browser to enable it to load a helper application or if it has none to offer to save the file.
...
8,677
Posted By balajesuri
perl -ne '(/Badger/ .. /goat/) && print' file ...
perl -ne '(/Badger/ .. /goat/) && print' file

You could do this with sed too:
sed -n '/Badger/,/goat/p' file
9,077
Posted By shreedhar.rk123
Can you try checking the value of $ID before...
Can you try checking the value of $ID before using it.
21,439
Posted By rbatte1
If you look in the man page and find the section...
If you look in the man page and find the section for interactive commands, you may have the option for a -P on the get sub-command that collects permissions and access time.

If not, can you SSH...
21,439
Posted By Corona688
I've found most sftp clients are able to accept...
I've found most sftp clients are able to accept here-documents.
21,439
Posted By rbatte1
Well, SFTP is a very different client to FTP. I...
Well, SFTP is a very different client to FTP. I don't think that SFTP will accept in-stream commands (well, that's what MVS used to call them) You will need to use the batch mode of SFTP.
...
21,439
Posted By hergp
Since it works here, there must be something in...
Since it works here, there must be something in the real script, which is not present in your example.

Try to replace "END_SCRIPT" with something different, shorter, like "EOF" for example (maybe...
21,439
Posted By hergp
Hmm, works here. The second END_SCRIPT,...
Hmm, works here.

The second END_SCRIPT, which ends the here-document, must start at the beginning of the line, no leading blanks or tabs are allowed. But you should get a warning from the shell,...
4,033
Posted By hergp
The here document is completely prepared, before...
The here document is completely prepared, before "lftp" is started. So it cannot react on lftp's output.

Another hint would be to try "expect". It is a tool to interact with programs and react on...
4,033
Posted By hergp
The ls command is run on the local machine, not...
The ls command is run on the local machine, not the remote machine.

You could find the name of the most recent file in a first call to lftp. You can write the output into a temporary file, grep...
4,033
Posted By hergp
You don't have lftp installed.
You don't have lftp installed.
4,643
Posted By durden_tyler
$ $ cat f78 <cols><col min="1" max="1"...
$
$ cat f78
<cols><col min="1" max="1" width="30.5703125" customWidth="1"/><col min="2" max="2" width="7.140625" bestFit="1" customWidth="1"/>
<col min="3" max="3" width="32.28515625"...
4,746
Posted By DGPickett
Force a zip tool to look at the xlsx file, for...
Force a zip tool to look at the xlsx file, for xlsx is a zip archive of many files. Many windows explorer version will open it if you rename it whatever.zip ! You need to filter the listing of the...
860
Posted By balajesuri
print "Enter any alphabet: "; $a = <STDIN>; ...
print "Enter any alphabet: ";
$a = <STDIN>;
chomp ($a);
if ( $a eq "a" || $a eq "e" || $a eq "i" || $a eq "o" || $a eq "u" )
{
print "entered is vowel\n";
}
else
{
print "not a...
Showing results 1 to 24 of 24

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