Linux bash 는 라인 일치 후 파일에서 라인 가져 오기

코드 예제

1
0

일치하는 줄 다음에 줄을 인쇄하는 방법을 배쉬

# Basic syntax:
grep -A number word_to_match input_file
# This prints "number" number of lines after and including the first
# line that matches word_to_match in the input_file

# Note, the word_to_match can be any expression that grep uses for 
# 	identifying matches (e.g. including combinations of AND and OR, etc) 
0
0

첫 경기 후 모든 라인을 grep

For grepping all lines from match to end of file use onw of following:
sed -n '/matched/,$p' file
awk '/matched/,0' file

다른 언어로

이 페이지는 다른 언어로되어 있습니다

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Español
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................