Guest_imported
New member
- Jan 1, 1970
- 0
HI All,
For example I have a file which contains the following,
1 CAT 34
2 CAT 33
3 CAT 88
4 DOG 90
5 DOG 12
6 PIG 34
7 PIG 33
8 PIG 25
:
:
Does anyone know how I can bucket the lines containing CAT and save it to one file named cat.txt, the same goes for DOG in dog.txt and for PIG in pig.txt?
I use bourne shell...
Thanks!
-CGLY
For example I have a file which contains the following,
1 CAT 34
2 CAT 33
3 CAT 88
4 DOG 90
5 DOG 12
6 PIG 34
7 PIG 33
8 PIG 25
:
:
Does anyone know how I can bucket the lines containing CAT and save it to one file named cat.txt, the same goes for DOG in dog.txt and for PIG in pig.txt?
I use bourne shell...
Thanks!
-CGLY