Search Results

Search: Posts Made By: kumar77
6,271
Posted By kumar77
Thanks for providing the solution
Thanks for providing the solution
6,271
Posted By kumar77
Vgresh99, You did hardcode a value of...
Vgresh99,

You did hardcode a value of variable in awk script, but I would like to pass value from shell scripts.

Thanks,
6,271
Posted By kumar77
Anurag singh, I would like to use only awk....
Anurag singh,

I would like to use only awk. I know that which was mentioned in your last reply.

Thanks,
6,271
Posted By kumar77
I am trying to total number of lines divided by...
I am trying to total number of lines divided by 8.

---------- Post updated at 06:44 PM ---------- Previous update was at 06:39 PM ----------

Anurag Singh,

I had tried with your code. But it...
6,271
Posted By kumar77
awk: division by zero
I received error "awk: division by zero" while executing the following statement.

SunOS 5.10 Generic_142900-15 sun4us sparc FJSV,GPUZC-M

echo 8 | awk 'END {printf ("%d\n",NR/$1 + 0.5);}'...
Showing results 1 to 5 of 5

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