1

我有一些文件有一些文本、50 个换行符(不要问),然后还有一些文本。我怎样才能得到换行符之后的文本?Shell 脚本很好。任何答案都将不胜感激,因为我已经坚持了一段时间。谢谢!

4

1 回答 1

1
set input to read POSIX file "/tmp/test" as «class utf8»
set d to ""
repeat 50 times
    set d to d & linefeed
end repeat
set text item delimiters to d
text item 2 of input
于 2013-03-03T17:34:14.337 回答