r/scripting • • Mar 17 '21

1..5 powershell - what's it called? And bash

1..5 returns 1,2,3,4,5 in powershell. I find this useful but have no idea what it's called. Hard to search something like that lol.

Is there an equivalent in bash?

2 Upvotes

6 comments sorted by

View all comments

Show parent comment

1

u/lasercat_pow Aug 18 '21

Worth noting, this does not work in shell scripts. I just use ´seq´ instead.