Horje
bash store file lines in variable Code Example
bash store file lines in variable
# 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
how to make a githook file executable Code Example how to make a githook file executable Code Example
clear ubuntu logs Code Example clear ubuntu logs Code Example
zipalign: command not found mac Code Example zipalign: command not found mac Code Example
example of hexdump Code Example example of hexdump Code Example
git apply previous stash Code Example git apply previous stash Code Example

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