|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Cutting line text
I want to cut very long lines from my log files to around 2000 lines.
Is the following command correct? sed -n '/^.\{2000\}/!p' mysql-slow.log > test.txt |
|
#2
|
|||
|
|||
|
Do you mean you only want to retain only the first 2000 lines in a given log or that you only want to retain a limited number of lines which are over a certain length?
__________________
"Badges? We ain't got no badges. We don't need to badges! I don't have to show you any stinkin' badges!!" |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > UNIX Help > Cutting line text |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|