1. Versuch in Bash
This commit is contained in:
24
asm/assembler.sh
Executable file
24
asm/assembler.sh
Executable file
@@ -0,0 +1,24 @@
|
|||||||
|
#! /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
|
||||||
Reference in New Issue
Block a user