The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 05-27-2009
venven venven is offline
Registered User
  
 

Join Date: May 2009
Posts: 4
separate file by line length

hi all,

i'm new in unix....

i have question, sorry if it's missplace or too silly

let say i have a file name testfile.log that contains data

000001
000002
000003
aaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb
cccccccccccccc
dddddddddddddddddd
000004

i want to make new file (newfile.log) that only consist

aaaaaaaaaaaaaaaaaa
bbbbbbbbbbbbbbbbbbbb
cccccccccccccc
dddddddddddddddddd

ps: what i want is, i split by line length which is > 6

regards,

steven