1

Beginner coder here :)

Writing in bash. I'm trying to write the numbers -7.5 to 72.5 in increments of 5 into the first column of a text file.

I can use

seq -7.5 5 72.5

to make the sequence of numbers

How should I write that into a text file?

Thanks

Lily
  • 303
  • 1
  • 2
  • 8

1 Answers1

1

Just redirect it into your file:

seq -7.5 5 72.5 > my_file.txt

Where my_file.txt is the name and path to your file.

Cullub
  • 2,901
  • 3
  • 30
  • 47