Search Results

Search: Posts Made By: radudownload
1,604
Posted By Corona688
awk uses 32-bit floating point numbers, its...
awk uses 32-bit floating point numbers, its precision is not infinite. By default it prints to 6 digits, but this can be controlled by the CONVFMT variable. Hopefully this works for your need:
awk...
1,604
Posted By Corona688
You've got a pretty good grasp for a newbie, but...
You've got a pretty good grasp for a newbie, but a couple things of note.

Variables do not expand inside single quotes. Never have, never will. They do inside double quotes, but I don't...
2,435
Posted By anbu23
STEP=$1 FILE=$2 sed -n "/Begin CG move = ...
STEP=$1
FILE=$2

sed -n "/Begin CG move = $STEP/,/Begin CG move = $((STEP+1))/p" $FILE > step.$STEP.tmp
2,435
Posted By balajesuri
x=70 y=$(( $x + 1 )) sed -n "/Begin CG step...
x=70
y=$(( $x + 1 ))
sed -n "/Begin CG step $x/,/Begin CG step $y/p" $file

or
awk '/Begin CG step '$x'/ {f=1;next} /Begin CG step '$y'/ {f=0;next} f==1 {print}' file
Showing results 1 to 4 of 4

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