Hi,
Let say a file contains 15000 lines. Out of these 15000 lines, 1000 lines belong to same group, 5000 lines to belong to another group. 3000 lines belong to some other group and 6000 belong to some other group.
Now we have to sort the file using awk. so plz tell me how we have to resolv it.
Give us more infos :
Which is the criterion of membership of a line to a group?
An exemple ...
it is like i hava file like .....
abcddwed
dsddfdfd
dgsfshfshg
hkjhdkjh
dsdsdsddd
when i say cat $filename | while read line.... the variable $line contains each line until end of the While loop... my requiremnt now is for eg: the $line should have ' dsddfdfd'.. but actually it has only 'dsddfdfd'.. the read command ignores the leading space...
Mr. Bourne,
Why you are posting in this thread? This thread has no relevance to your problem. Same problem you have posted in another thread. Pls don't do like that and carefully read the rules before posting any further queuries.
Regards,
Tayyab