Horje
bash return only first line that contains match Code Example
bash return only first line that contains match
# Basic syntax:
grep -m 1 "pattern" input_file.txt
# Where -m is the maximum number of matching lines to return, i.e. stop
#	reading the file after m matches
# Note, this is more efficient than piping to head because there you
#	always read the whole file even if you're only looking for m matches




Shell

Related
expo install in ubuntu Code Example expo install in ubuntu Code Example
find large files linux Code Example find large files linux Code Example
bash grep only return first match Code Example bash grep only return first match Code Example
failed to download repository information ubuntu Code Example failed to download repository information ubuntu Code Example
npm i --global expo-cli Code Example npm i --global expo-cli Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
13