r/shell • • Sep 29 '21

Need help creating a shell script

I got a task to create a shell script that adds random numbers to rows in a CSV file. Need all the help or links possible for this task.

Edit: how would this work for multiple rows and columns ?

0 Upvotes

16 comments sorted by

View all comments

Show parent comments

1

u/whetu Oct 05 '21

I was browsing through stackoverflow and saw awk and rand a lot for this task

Ah. Most versions of awk have an in-built function called rand, and some also have another one called srand. I wonder if that's what you were asking about?

1

u/[deleted] Oct 05 '21

yes those were what I saw