Truncate extra contents from file

Hi all,

i have a file and i want that after 6th slash "/" in each line of the file the contents gets truncated.

Can anyone tell me how to do that !!

thanks in advance

One more thing how can i change the size of output buffer of console,

as i had very long output and its not getting displayed properly !!

cat inputfile | cut -d"/" -f1-6 > newfile

no need cat

cut -d"/" f1-6 < file >newfile