Jump to content

Recommended Posts

Posted

Вся задача состоит в том чтобы написать скрипт ражущий документ.

А проще между двумя строками "А" и "B" взять текст а все остальное удалить. Блин че то меня клемануло... и ни фига не получается... Может кто поможет ?

Posted

Вопрос задан - хуже некуда. Почитайте Smart Questions Howto. По вопросу:

cat $file | grep $A -A 100000 | grep $B -B 100000

Цифра 100000 взята наугад, там может быть что угодно, наверняка превышающее кол-во строк в документе.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...