Search Results

Search: Posts Made By: FerRory
8,022
Posted By FerRory
Today i needed a new script which reads line for...
Today i needed a new script which reads line for line and i tried a for loop.
So I made the following script:

bla=2
echo $bla
for i in `cat ./config.txt`
do
echo $i
bla=5
done

echo...
8,022
Posted By FerRory
I just tested it under a Solaris machine and it...
I just tested it under a Solaris machine and it does NOT work.

Script:

#!/bin/sh

FLAG=0;
while read data
do
echo "data=$data"
FLAG=1;
done < filename

echo $FLAG
...
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 12:43 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy