Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些文件有一些文本、50 个换行符(不要问),然后还有一些文本。我怎样才能得到换行符之后的文本?Shell 脚本很好。任何答案都将不胜感激,因为我已经坚持了一段时间。谢谢!
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