Search Results

Search: Posts Made By: AbelLuis
5,349
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,825
Posted By AbelLuis
Yes, I agree, the merge option requieres previous...
Yes, I agree, the merge option requieres previous sorted files.

Regards.
2,937
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,937
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,270
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,747
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,747
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,436
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,436
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,286
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 07:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy