Search Results

Search: Posts Made By: AbelLuis
5,270
Posted By AbelLuis
Hi all, there is an ancient formula that...
Hi all,
there is an ancient formula that convert quickly a "gregorian" date (month, day, year) to "julian" date (number of days from January 1 of year 1).

This is the implementation in awk.
...
1,807
Posted By AbelLuis
Yes, I agree, the merge option requieres previous...
Yes, I agree, the merge option requieres previous sorted files.

Regards.
2,842
Posted By AbelLuis
Thanks, @Scrutinizer. If I wanto to match...
Thanks, @Scrutinizer.

If I wanto to match the re's with single quotes and colon,

awk '$7=="PASS" && /\'oncomineGeneClass\':/ && /\'oncomineVariantClass\':/' fileIt doesn't work so. How...
2,842
Posted By AbelLuis
Hello, The problem is the regular expression,...
Hello,
The problem is the regular expression, and in the input file the keys are enclosed in single quotes (').
This is not a very smart code, but it works:

awk -F'\t'
'
BEGIN{...
19,190
Posted By AbelLuis
Hi, Commands work with if without mediation of...
Hi,
Commands work with if without mediation of "test" (brackets []):

if grep "name>$servername" $1; then
The return code is enough for "if".

Also:


if [ $? -eq 0 ]; then
...is...
2,708
Posted By AbelLuis
Hi, drl, this worked on the original sample: ...
Hi, drl,
this worked on the original sample:


#!/usr/bin/awk -f

{
n1=match($0, "\x27");
n2=match(substr($0, n1+1), "\x27");

while ( n1 > 0 ){
printf("%s", tolower(substr($0, 1,...
2,708
Posted By AbelLuis
Hi, John K, you may try this: awk '{ ...
Hi, John K,
you may try this:


awk '{
for (i=1; i<=NF; i++ )
if ( substr($i, 1, 1) == "\x27" && substr($i, length($i), 1)=="\x27")
...
1,410
Posted By AbelLuis
Hi, this is just another way. You only nee...
Hi,
this is just another way.

You only nee to add a semicolon at the end of each command.


myTest () { echo "MYPWD=$(echo $(pwd))"; echo "MYLOGNAME=${LOGNAME}"; } myCar () { echo...
1,410
Posted By AbelLuis
@jim mcnamara I added that way because it...
@jim mcnamara

I added that way because it was the original request.



Regards.
7,219
Posted By AbelLuis
@Scrutinizer <<what is the sense of introducing...
@Scrutinizer
<<what is the sense of introducing "eval" here.>>
The function Command build the name of a call to SQL, but don't execute it; so it need to be parsed and executed. "eval" does it. ...
Showing results 1 to 10 of 10

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