25 lines
278 B
Bash
Executable File
25 lines
278 B
Bash
Executable File
#! /bin/bash
|
|
|
|
datei=$1
|
|
|
|
#while read line
|
|
#do
|
|
# echo "$line"
|
|
|
|
#done < $datei
|
|
|
|
# besser einlesen in eine Variable
|
|
|
|
var="$(cat $datei)"
|
|
#echo "$var"
|
|
IFS=$'\n'
|
|
|
|
for line in $var
|
|
do
|
|
echo $line
|
|
done
|
|
|
|
IFS=''
|
|
|
|
# https://robertw.io/blog/bash-effizientes-verarbeiten-von-textdaten.html
|