rossyeperez
Technical User
I have the following kind of file :
DEPTH cdccd aaa dccc cdfd
xxxx ccccc xxxx vvvv
xxxx ccccc xxxx xxxx
xxxxx vvvv xxxx
xxxx ffff ssss qqqq
DEPTH xxx xxx ccc xxx yy zz vvvvv
1 xxx-sss 2 3 -4 5 6 xxx-sss
2 ddd-ppp 3 -4 -5 6 7 xxx-sss
3 ccc-ppp -4 5 -6 7 8 xxx-sss
4 vvv-ooo 5 6 -7 8 0 xxx-sss
I would like to get two file outputs
one file that print all the information before of second DEPTH row
DEPTH cdccd aaa dccc cdfd
xxxx ccccc xxxx vvvv
xxxx ccccc xxxx xxxx
xxxxx vvvv xxxx
xxxx ffff ssss qqqq
and the second file with all the information after of second DEPTH row but deleting columns with character except the columns with negative values :
DEPTH xxx ccc xxx yy zz
1 2 3 -4 5 6
2 3 -4 -5 6 7
3 -4 5 -6 7 8
4 5 6 -7 8 0
keeping the row with the second DEPTH and deleting the correspond column that were erased in the table.
Thanks
Rossy
DEPTH cdccd aaa dccc cdfd
xxxx ccccc xxxx vvvv
xxxx ccccc xxxx xxxx
xxxxx vvvv xxxx
xxxx ffff ssss qqqq
DEPTH xxx xxx ccc xxx yy zz vvvvv
1 xxx-sss 2 3 -4 5 6 xxx-sss
2 ddd-ppp 3 -4 -5 6 7 xxx-sss
3 ccc-ppp -4 5 -6 7 8 xxx-sss
4 vvv-ooo 5 6 -7 8 0 xxx-sss
I would like to get two file outputs
one file that print all the information before of second DEPTH row
DEPTH cdccd aaa dccc cdfd
xxxx ccccc xxxx vvvv
xxxx ccccc xxxx xxxx
xxxxx vvvv xxxx
xxxx ffff ssss qqqq
and the second file with all the information after of second DEPTH row but deleting columns with character except the columns with negative values :
DEPTH xxx ccc xxx yy zz
1 2 3 -4 5 6
2 3 -4 -5 6 7
3 -4 5 -6 7 8
4 5 6 -7 8 0
keeping the row with the second DEPTH and deleting the correspond column that were erased in the table.
Thanks
Rossy