Answer the question
In order to leave comments, you need to log in
I want to scatter strings into variables, what's wrong?
I read the file and put each line into a variable.
#!/bin/bash
myl=0
while read line
do
let myl=$myl+1
accum$myl="$line"
done < source.txt
parce.sh: line 7: accum1=2014-08-03 12:00:00 root 0 0.0 0.0 1 400 1000 1000: command not found
parce.sh: line 7: accum2=2014-08-03 06:00:00 root 0 0.0 0.0 1 400 1000 1000: command not found
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question