Search Results

Search: Posts Made By: yahyaaa
Forum: Programming 09-11-2016
2,169
Posted By stomp
Some comments: If you try to write...
Some comments:

If you try to write MySQL-Functions, I suggest starting from a very minimal function and extend bit by bit and checking if the results are as expected at every step. So you can...
Forum: Programming 09-10-2016
2,169
Posted By stomp
Hi, maybe you create a function which...
Hi,

maybe you create a function which figures out the count of equal numbers from the left. Let it for example be called: "get_equal_numbers(col_number,my_number)" See here fore documentation:...
1,521
Posted By Don Cragun
Closest match can have several meanings... ...
Closest match can have several meanings... Assuming that you mean you want the longest string in File1 that is a leading substring of the string in File2, you could also try this slightly different...
1,521
Posted By MadeInGermany
This one strips off more and more digits from the...
This one strips off more and more digits from the end until it finds a match
awk '
NR==FNR {
# file1
s1=$1
$1="" # this changes $0
s[s1]=$0
next
}
{
# file2
len=length($1)
...
6,461
Posted By ahmad.diab
if you want to use Perl for predefined date you...
if you want to use Perl for predefined date you can use below code:-


#!/usr/bin/perl -l

use Date::Parse;
print str2time("Mon Apr 18 16:45:00 UTC 2011"); #1303145100
print...
10,713
Posted By ahmad.diab
it is more simpler if you use associative array...
it is more simpler if you use associative array below:-

Note:- in solaris use nawk instead of awk.


awk 'NR==FNR{a[ int( substr($0,1,9) )] ; next}(FNR in a)' fileA fileB


BR
...
Showing results 1 to 6 of 6

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