ocehb: (Default)
[personal profile] ocehb



Помогите собрать программку, которая бы находила фрагмент текста в первом файле (например после слов DESC) и искала бы наличие подобного фрагмента во втором файле,
если такой фрагмент в другом файле находится то записываем этот фрагмент в 3й файл)



# grep -F "$(grep -m1 -A1 DESC file.1 | tail -1)" file.2 > file.3





This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

ocehb: (Default)
ocehb

January 2021

S M T W T F S
     12
345 6789
10111213141516
17181920212223
24252627282930
31      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 7th, 2025 05:31 pm
Powered by Dreamwidth Studios