Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
TypeScript
how to put the contents of a file into an array in bash
Advait Ramesh
Programming language:
TypeScript
2021-03-20 13:38:59
0
Q:
how to put the contents of a file into an array in bash
Atoq
Code:
TypeScript
2021-07-27 18:45:30
IFS=$'\n' read -d '' -r -a lines < /path/to/file
0
Tags
array
file
int
con
how
into
Related
print contents of file bash
New to Communities?
Join the community