How can I store contents of a file in array, for example:
my file has :
a /n b /n c /n d /n
I want to store each line in array, how can I?
I'm using bash 3 on OSX.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community