Grep: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
(Created page with " get rid of comments, even lines that start with space and then have comments: more /etc/apache2/vhosts.d/default_vhost.include | egrep -v '^\s?#'") |
No edit summary |
||
Line 3: | Line 3: | ||
more /etc/apache2/vhosts.d/default_vhost.include | egrep -v '^\s?#' | more /etc/apache2/vhosts.d/default_vhost.include | egrep -v '^\s?#' | ||
remove comments , and blanks lines: | |||
cat /srv/gitblit-1.4.1/data/gitblit.properties | egrep -v '^\s?#' | grep -v "^[[:space:]]*$" |
Revision as of 15:54, 26 March 2014
get rid of comments, even lines that start with space and then have comments:
more /etc/apache2/vhosts.d/default_vhost.include | egrep -v '^\s?#'
remove comments , and blanks lines:
cat /srv/gitblit-1.4.1/data/gitblit.properties | egrep -v '^\s?#' | grep -v "^space:*$"