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  Python code snippet - How to move a column to the beginning in dataframe?

Leave a Reply

Your email address will not be published.

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