Search Results

Search: Posts Made By: darbs121
3,109
Posted By CarloM
currfile=1 while read line do if [...
currfile=1
while read line
do
if [ "$line" = "1" ]
then
(( currfile++ ))
else
echo "$line" >> ${currfile}.txt
fi
done < infile.txt
Showing results 1 to 1 of 1

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