How to use grep command in a loop in gnuscript
问题 sorry, I am asking multiple questions. I have a case.dat file which is having multiple columns and I want to extract array of the data according to colum 2 in the gnuscript. I tried with below script but it is giving me error array="" do for [i=300:800:100] { # I mean start:end:increment. so it should read 300, 400, 500, 600, 700, 800 here val ="grep i case.dat" # Want to store the command in a valuel/variable print val > i.dat #Here I need to store the data in i.dat } error line 45: