Horje
bash store contents of file in array Code Example
bash store contents of file in array
# Basic syntax:
while IFS= read line; do
	FILE_IN_ARRAY+=("$line")
done </path/to/your/file.txt
# Where:
#	- this site explains arrays helpfully: 
#		https://linuxize.com/post/bash-arrays/
how to put the contents of a file into an array in bash
IFS=$'\n' read -d '' -r -a lines < /path/to/file




Shell

Related
bash nohup specify output file Code Example bash nohup specify output file Code Example
case insensitive zgrep Code Example case insensitive zgrep Code Example
how to add ca to linux Code Example how to add ca to linux Code Example
npx cap sync Unable to find node_modules/@angular-eslint/builder Code Example npx cap sync Unable to find node_modules/@angular-eslint/builder Code Example
ls human readable file size Code Example ls human readable file size Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
19