Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »




windows bash / ubuntu
reg 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

exclude log 

exclude 1.log 2.log , . . . 


exclude number log
[t128@conductor ~]$ ls /var/log/128technology/ | egrep -v '[1-9]{1,4}'
accessManager.log
analyticsReporter.log
audit
auditdReceiver.log
automatedProvisioner.log
conflux.log
databaseQueryCoordinator.log
. . .















  • No labels