Search Results

Search: Posts Made By: trilicno
1,682
Posted By trilicno
doesnt work somefile2 created but empty the...
doesnt work
somefile2 created but empty
the somefile1 format is
00000214 5 1 12 49 38 49 01-01-2008 14:05:14 10 59 45 32...
1,695
Posted By trilicno
search change write
i="1"
while [ $i -le 1000 ]
do

k=`expr $i + 1`
sed -e 's/"$i"/"$k"/' < somefile1.txt >> somefile2.txt
i=`expr $i + 1`
done



ive been trying to :
1 from a file containing numbers...
1,682
Posted By trilicno
search change write
i="1"
while [ $i -le 1000 ]
do
k=`expr $i + 1`
sed -e 's/"$i"/"$k"/' < somefile1.txt >> somefile2.txt
i=`expr $i + 1`
done

ive been trying to :
1 from a file containing numbers...
Showing results 1 to 3 of 3

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