Skip to content

TypeScript code snippet – How to put the contents of a file into an array in bash?

IFS=$'\n' read -d '' -r -a lines < /path/to/file
See also  How to print memory address in Python?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.