Search Results

Search: Posts Made By: DeltaX
15,748
Posted By DeltaX
that $0 = substr($0, 1, RSTART-1) substr($0,...
that $0 = substr($0, 1, RSTART-1) substr($0, RSTART+RLENGTH); wont work, I used used substr($0, x, y)


Thanks though !
15,748
Posted By DeltaX
Thanks much. Worked like a charm :)
Thanks much.

Worked like a charm :)
15,748
Posted By DeltaX
awk - sub() ---> substr(), match()
Hello guys,

I want to substitute sub() with substr() and match() for the following code. Its part of series of else if's:


Block 1)
# Example line:
# Drive sense data: f0000300 00848f0a...
4,631
Posted By DeltaX
Thanks very much, Perderabo. I just figured that...
Thanks very much, Perderabo. I just figured that out this afternoon. Its the the operand of the AND plus one.
7,880
Posted By DeltaX
nawk/ksh help
Hello,

First of all, I am trying to duplicate the sum command using ksh/nawk


Lets assume the following algorithms work just fine and there is no calculation errors what so ever (which I doubt...
4,631
Posted By DeltaX
Cant I use v % m instead of v-(int(v/m)*m) ?
Cant I use v % m instead of v-(int(v/m)*m) ?
4,631
Posted By DeltaX
So, if I wanted to perform (x & 1) on nawk, I...
So, if I wanted to perform (x & 1) on nawk, I use:

x-(int(x/1)*1) [nawk]
4,631
Posted By DeltaX
yea my problem is how to do the AND.
yea my problem is how to do the AND.
4,631
Posted By DeltaX
Thanks for your prompt response. We will see if...
Thanks for your prompt response. We will see if someone can help :)

Thanks again
4,631
Posted By DeltaX
nawk question
I am trying to write the following c code in nawk:

while ((ch = getc (fp)) != EOF)
{
total_bytes++;
checksum = (checksum >> 1) + ((checksum & 1) << 15);
checksum += ch;...
1,762
Posted By DeltaX
I figured it out :)
I figured it out :)
1,762
Posted By DeltaX
Thanks shamrock I did figure out. Is...
Thanks shamrock

I did figure out.

Is there a way where I can input the columns number at the command line ? or not
1,762
Posted By DeltaX
Im just tryin to learn how to do things in script...
Im just tryin to learn how to do things in script form, not in command line.
1,762
Posted By DeltaX
Thanks, How can I do that in a script
Thanks,

How can I do that in a script
1,762
Posted By DeltaX
I think I figured it out !! Thanks anwyays. ...
I think I figured it out !!

Thanks anwyays.


I have another question :)

I'm trying to do a fold script similar to the one built in the system. For ex, let say I wanna fold lines at 80...
1,762
Posted By DeltaX
NAWK question
Hello everybody !!

I just started messing around with NAWK/AWK and I find it very interesting. I was trying to have script that prints only the the different lines (lines that are identical and...
Showing results 1 to 16 of 16

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