P
Pinar
Pinar
halloooo ihr lieben,
ich hoffe ihr könnt mir weiterhelfen
ich lernen momentan die skriptsprache shell und alles was dazu gehört. ich soll aus einer textdatei bestimmte wörter rausfiltern.
ich habe herausgefunden, dass man das am besten mit while read macht.
leider komme ich ab dem punkt nicht wirklich weiter :/
while read line < $OUTPUTFILE
do
# Suche "CONTROLLERS---" ... -> FOUND=1
if [ -n "`echo $line | grep CONTROLLERS--- ´" ]; then
FOUND=1
elif [ $line == "ARRAYS---" ] && break
das wort dass ich such liegt in dem abschnitt dass mit controllers anfängt und mit arrays aufhört :/
ich hoffe ihr könnt mir weiterhelfen
ich lernen momentan die skriptsprache shell und alles was dazu gehört. ich soll aus einer textdatei bestimmte wörter rausfiltern.
ich habe herausgefunden, dass man das am besten mit while read macht.
leider komme ich ab dem punkt nicht wirklich weiter :/
while read line < $OUTPUTFILE
do
# Suche "CONTROLLERS---" ... -> FOUND=1
if [ -n "`echo $line | grep CONTROLLERS--- ´" ]; then
FOUND=1
elif [ $line == "ARRAYS---" ] && break
das wort dass ich such liegt in dem abschnitt dass mit controllers anfängt und mit arrays aufhört :/