Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




windows bash / ubuntu


Code Block
titlereg expression with grep
lonking for all the interface in a configuration file:
the pattern is: ge-x/x/x or xe-x/x/x  but only starting the line


grep "^    [gx]e-[0-9]/[0-9]" Config_Only.txt


Count the number of line

grep "^    [gx]e-[0-9]/[0-9]" Config_Only.txt  | wc -l