Skip to main content
Capitalization
Source Link
jasonwryan
  • 74.9k
  • 35
  • 204
  • 230

onOn my machine iI need to execute a ciclecycle that iterates 1 simple command that must have a delay expressed in fractions of second.

let'sLet's say that iI need:

  • to save a file with an increasing enumaration ( file-0, file-1, file-2, ... ) generate by something trivial for this example like time > file-$x
  • iI need to do this every 1/70 of second ( asas an example  ) because iI would like to express my time with fractions of second.

how iHow can I be really precise and have everything expressed with a bash script  ?

theThe fraction can generate an indeterminable quantity, iI need to be precise and so iI need at least 4-5 decimals.

on my machine i need to execute a cicle that iterates 1 simple command that must have a delay expressed in fractions of second.

let's say that i need:

  • to save a file with an increasing enumaration ( file-0, file-1, file-2, ... ) generate by something trivial for this example like time > file-$x
  • i need to do this every 1/70 of second ( as an example  ) because i would like to express my time with fractions of second

how i can be really precise and have everything expressed with a bash script  ?

the fraction can generate an indeterminable quantity, i need to be precise and so i need at least 4-5 decimals.

On my machine I need to execute a cycle that iterates 1 simple command that must have a delay expressed in fractions of second.

Let's say that I need:

  • to save a file with an increasing enumaration ( file-0, file-1, file-2, ... ) generate by something trivial for this example like time > file-$x
  • I need to do this every 1/70 of second (as an example) because I would like to express my time with fractions of second.

How can I be really precise and have everything expressed with a bash script?

The fraction can generate an indeterminable quantity, I need to be precise and so I need at least 4-5 decimals.

Source Link
user1717079
  • 485
  • 2
  • 5
  • 11

Need a loop to sleep for a fraction of second

on my machine i need to execute a cicle that iterates 1 simple command that must have a delay expressed in fractions of second.

let's say that i need:

  • to save a file with an increasing enumaration ( file-0, file-1, file-2, ... ) generate by something trivial for this example like time > file-$x
  • i need to do this every 1/70 of second ( as an example ) because i would like to express my time with fractions of second

how i can be really precise and have everything expressed with a bash script ?

the fraction can generate an indeterminable quantity, i need to be precise and so i need at least 4-5 decimals.