Search Results

Search: Posts Made By: abdulaziz
1,578
Posted By abdulaziz
hmm..nice one..I modified it like this: ...
hmm..nice one..I modified it like this:


perl -e '($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst)=localtime(time - (20 * 86400));printf "%4d-%02d-%02d...
1,578
Posted By abdulaziz
before x days
hello,

I needed to put value of date - 20 days in certain variable like this:

before20d=`TZ=MET+480 date +%Y%m%d`

echo $before20d



value just perfect ...what I need and if I execute...
4,002
Posted By abdulaziz
thank U guys for help...that was quick :)
thank U guys for help...that was quick :)
4,002
Posted By abdulaziz
sort by multiple columns and reformat...
hello..

I have big file and so far I was able to shink it and make smaller with certains values that I need..

vendor1|2000|1
vendor2|1000|1
vendor2|5000|1
vendor2|500|2
vendor3|1000|2...
3,773
Posted By abdulaziz
hey danmero...listen this: I save exactly...
hey danmero...listen this:

I save exactly 2.5 hours with your solution of execution with this awk!!!

can not belive this :)))
3,773
Posted By abdulaziz
well it is little bit hard to undestand which...
well it is little bit hard to undestand which file U access first...becouse both files are just listed after awk.

I do not get this part:

arr[$0]++}$2

:(
3,773
Posted By abdulaziz
thanks guys....danmero I use your code..it is...
thanks guys....danmero I use your code..it is awsame..but some explanation would be nice..hehehehe

jim thanks but I do have problem :

nawk: syntax error at source line 1
context is
...
3,773
Posted By abdulaziz
help - exec time too long
Dear everyone...

thanks to this forum I am able to do everyday more and more complex scripts...but now I come up with problem with optimisation..


problem 1 - optimise:
here is my code:

...
1,341
Posted By abdulaziz
done it...code is OK error was in variable...
done it...code is OK error was in variable passing...:)

everyone be careful by passing values to awk


:)))
1,341
Posted By abdulaziz
any post...? :) anyone?
any post...? :)

anyone?
1,341
Posted By abdulaziz
converting from reliant 2 solaris
Hello...

I am trying to convert my script from one to another unix flavor...
from reliant to solaris...I did all but can not convert this awk/nawk:
First code if code that works what I want...
1,826
Posted By abdulaziz
newz=${z%%.new} mv newz z
newz=${z%%.new}

mv newz z
11,909
Posted By abdulaziz
or U could also.. full_path=/bb/data/f233pdb...
or U could also..

full_path=/bb/data/f233pdb
pth=$( echo $full_path | sed "s,/[^/]*$,," )
file=$( echo $full_path | sed "s,/.*/,," )

Selam
Forum: Solaris 01-11-2008
27,454
Posted By abdulaziz
right..on reliant unix this file...
right..on reliant unix this file /etc/default/passwd exitsts..

what should be set in order to have permanent password..

is that only that I have to leave it blank ??


MAXWEEKS=24...
Forum: Solaris 01-10-2008
27,454
Posted By abdulaziz
password expiration
Hello

can anyone explain where can be found logic for user password expiration on solaris as well as on reliant UNIX??

there is not much help of /etc/security directory..does not exist!

any...
4,740
Posted By abdulaziz
any explanation of thoese sed commands..in this...
any explanation of thoese sed commands..in this context..I mean I know basics of sed.

thanks in advance
54,677
Posted By abdulaziz
well yes I did it but when I look at it I just...
well yes I did it but when I look at it I just know that there is more elegant way...:)


but anyways thanks for answer that there is no case in awk..I thought that is must be becouse "if else"...
54,677
Posted By abdulaziz
that is what I thought...there is no case or...
that is what I thought...there is no case or switch statement inside awk/nawk...

any suggestion how can I emulate it..or how can I do it without case/switch with supported statements
54,677
Posted By abdulaziz
case command inside awk/nawk
well I found lot of topics about awk..about if command in awk..

but I had to implement this:

nawk -F"|" '
$47 ~ /0R0011/ { print > ("/home/user/M/MC.tmp" )}
$47 ~ /0R0012/ { print >...
Showing results 1 to 19 of 19

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