Skip to main content
added 145 characters in body
Source Link
k4cy
  • 111
  • 5

Assuming your file is named test.csv:

cat test.csv | grep -E "48[0-9]{3}" test.csv

grep -E search a string using a regexp 48

48 is the start number you need [0

[0-9] is a number between 0 and 9 and {3} means 3 times

Assuming your file is named test.csv:

cat test.csv | grep -E "48[0-9]{3}" test.csv

grep -E search a string using a regexp 48 is the start number you need [0-9] is a number between 0 and 9 and {3} means 3 times

Assuming your file is named test.csv:

grep -E "48[0-9]{3}" test.csv

grep -E search a string using a regexp

48 is the start number you need

[0-9] is a number between 0 and 9 and {3} means 3 times

added 145 characters in body
Source Link
k4cy
  • 111
  • 5

Assuming your file is named test.csv:

cat test.csv | grep -E "48[0-9]{3}" test.csv

grep -E search a string using a regexp 48 is the start number you need [0-9] is a number between 0 and 9 and {3} means 3 times

Assuming your file is named test.csv:

grep -E "48[0-9]{3}" test.csv

Assuming your file is named test.csv:

cat test.csv | grep -E "48[0-9]{3}" test.csv

grep -E search a string using a regexp 48 is the start number you need [0-9] is a number between 0 and 9 and {3} means 3 times

fix useless use of cat
Source Link
ilkkachu
  • 147.9k
  • 16
  • 268
  • 441

Assuming your file is named test.csv test.csv:

cat test.csv | grep -E "48[0-9]{3}" test.csv

Assuming your file is named test.csv :

cat test.csv | grep -E "48[0-9]{3}"

Assuming your file is named test.csv:

grep -E "48[0-9]{3}" test.csv
Source Link
k4cy
  • 111
  • 5
Loading