Horje
shell load file as variable Code Example
shell load file as 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
adonis Cannot find module 'phc-argon2' Code Example adonis Cannot find module 'phc-argon2' Code Example
linux saber la distribución terminal Code Example linux saber la distribución terminal Code Example
gitignore which rule Code Example gitignore which rule Code Example
python google sheets api packages Code Example python google sheets api packages Code Example
node-gyp rebuild Code Example node-gyp rebuild Code Example

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