Hi guys,
I've got file content like this
5.6G f320652
2.3G m023569
And I want to put the user name in the third field, which i need to finger it first.
So if I do,
for file in `cat filename`
do
echo $file
done
the result would be
5.6G
f320652
2.3G
m023569
How if I want to keep
5.6G ... in one line
And any idea the best way and shortest way of doing it ?
Thx guys,
I've got file content like this
5.6G f320652
2.3G m023569
And I want to put the user name in the third field, which i need to finger it first.
So if I do,
for file in `cat filename`
do
echo $file
done
the result would be
5.6G
f320652
2.3G
m023569
How if I want to keep
5.6G ... in one line
And any idea the best way and shortest way of doing it ?
Thx guys,