Horje
bash read file into variable Code Example
read file using shell script
#!/bin/bash
input="/path/to/txt/file"
while IFS= read -r line
do
  echo "$line"
done < "$input"
bash read file into 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 remove a folder from git and not locally Code Example how to remove a folder from git and not locally Code Example
error: package android.support.v4.content does not exis Code Example error: package android.support.v4.content does not exis Code Example
perfect git commit Code Example perfect git commit Code Example
dbeaver install Code Example dbeaver install Code Example
como saber la distribucion de linux por consola Code Example como saber la distribucion de linux por consola Code Example

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