19 August 2011

$ cat file | grep ^[^#] to view file without comments

$ cat .bashrc

#source /etc/profile

extract () {   if [ -f $1 ] ; then      case $1 in...


$ cat .bashrc | grep ^[^#]

extract () {   if [ -f $1 ] ; then      case $1 in...


$

No comments:

Post a Comment

Pages