$
$ # display contents of testfile.log
$ cat testfile.log
000001
000002
000003
aaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb
cccccccccccccc
dddddddddddddddddd
000004
$
$ # pick up only those lines that are more than 6 chars long
$ awk 'length > 6' testfile.log
aaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb
cccccccccccccc
dddddddddddddddddd
$
$ # pick up only those lines that are more than 6 chars long AND put them in a new file
$ awk 'length > 6' testfile.log > newfile.log
$
$ # verify that the new file has the stuff you want
$ cat newfile.log
aaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb
cccccccccccccc
dddddddddddddddddd
$
$
you questions are very simple to do. what have you got ? someone has already shown you how to use awk. Look up the awk documentation and see how you can do the second task.