Horje
bash store file in array Code Example
bash store file in array
# Basic syntax:
FILELINES=`cat your_file.txt`

# Example usage:
# Say you have a file "your_file.txt" containing the following sample names
# and you want to iterate over them in a bash script:
SAMPLE1
SAMPLE2
SAMPLE3
# The bash script would look like:
SAMPLES = `cat your_file.txt`
for SAMPLE in $SAMPLES; do
	echo $SAMPLE
done




Shell

Related
google api python modules  Code Example google api python modules Code Example
composer create-project symfony/website-skeleton Code Example composer create-project symfony/website-skeleton Code Example
Run a command in the background witch automatically rerun Raw Code Example Run a command in the background witch automatically rerun Raw Code Example
ubuntu 20.04 uninstall imagemagick Code Example ubuntu 20.04 uninstall imagemagick Code Example
bash script how to show a file by using less Code Example bash script how to show a file by using less Code Example

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