a.txt-
- [Promise don't come easy]
- I should have known all along.
- There was something wrong.
- I just never read between the lines.
- Then I woke up one day and found you on your way.
- Leaving nothing but my heart behind.
- What can I do to make it up to you.
- Promises don't come easy.
- But tell me if there's a way to bring you back home to stay.
- Well I'd promises anything to you.
- I've been walkin' around with my head hanging down.
- Wondrin' what I'm gonna do.
- 'Cause when you walked out that door.
复制代码 要求,CMD原始窗口中,不调节窗口大小,不生成临时文件,居中显示文本内容。输出如下:-
-
- [Promise don't come easy]
- I should have known all along.
- There was something wrong.
- I just never read between the lines.
- Then I woke up one day and found you on your way.
- Leaving nothing but my heart behind.
- What can I do to make it up to you.
- Promises don't come easy.
- But tell me if there's a way to bring you back home to stay.
- Well I'd promises anything to you.
- I've been walkin' around with my head hanging down.
- Wondrin' what I'm gonna do.
- 'Cause when you walked out that door.
复制代码
-----------------------------------------------------------------------------------
至此,已有比较完美的答案,见2楼sed版,与6楼findstr版。
[ 本帖最后由 pusofalse 于 2008-7-31 21:17 编辑 ] |