Hello guys,
I've got a file that I need to strip the lines out of and then create each line as a seperate variable.
I'm looking for your opinions on the best way to achieve this.
So i have a file that perhaps looks as follows.
I would like to grab each line as a seperate variable such as $a, $b, $c or somthing along those lines.
Whats the best way on achieving this?
I'm quite happy to limit the script to only account for the top 10 lines of code if that makes it any easier to develop a solution.
I'm thinking something along the lines of SED, but i'm not that great with the syntax yet.
I'm using Bash Shell, Thanks for your thoughts guys,
Rob
I've got a file that I need to strip the lines out of and then create each line as a seperate variable.
I'm looking for your opinions on the best way to achieve this.
So i have a file that perhaps looks as follows.
Code:
00:09:2D:31:69:4C-2
00:0E:6D:04:6D:06-9
00:0E:6D:E4:62:03-9
I would like to grab each line as a seperate variable such as $a, $b, $c or somthing along those lines.
Whats the best way on achieving this?
I'm quite happy to limit the script to only account for the top 10 lines of code if that makes it any easier to develop a solution.
I'm thinking something along the lines of SED, but i'm not that great with the syntax yet.
I'm using Bash Shell, Thanks for your thoughts guys,
Rob