Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. {x = ($1-T1)/Fi; print (x-int(x))}
  2.  
  3. 4 4
  4. 8 4
  5. 7 78
  6. 45 2
  7.  
  8. 0.2
  9. 3
  10. 2
  11. 1
  12.  
  13. awk 'FNR == NR { F[++n] = $1; next } FNR == 1 { T1 = $1 } { for (i = 1; i <= n; ++i) { x = ($1 - T1)/F[i]; print x - int(x) >"output" FNR} }' file2 file1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement