Tuesday, July 28, 2009

UNIX command,help!?

hi, I want to copy the lines, for example the line 10- 20 of a.cpp to b.cpp. Is there any UNIX command can do that?

UNIX command,help!?
I would write a little perl script to do it. Sorry but I can't think of any way to do that straight from the command line. There might be a way with sed, but it would be complicated.


No comments:

Post a Comment