Discover Centmin Mod today
Register Now

ACK Installed By Default

Discussion in 'Feature Requests & Suggestions' started by BamaStangGuy, May 14, 2017.

  1. BamaStangGuy

    BamaStangGuy Active Member

    537
    164
    43
    May 25, 2014
    Ratings:
    +217
    Local Time:
    8:39 PM
  2. eva2000

    eva2000 Administrator Staff Member

    37,227
    8,132
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,520
    Local Time:
    12:39 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    should be simple to install though ?
    Code (Text):
    yum -y install ack
    
     
  3. eva2000

    eva2000 Administrator Staff Member

    37,227
    8,132
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,520
    Local Time:
    12:39 PM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    hmmm performance wise I'd prefer grep/awk myself
    Code (Text):
    time ack NGINX_VERSION centmin.sh
    NGINX_VERSION='1.13.0'       # Use this version of Nginx
    
    real    0m0.029s
    user    0m0.026s
    sys     0m0.004s
    

    Code (Text):
    time grep NGINX_VERSION centmin.sh
    NGINX_VERSION='1.13.0'       # Use this version of Nginx
    
    real    0m0.001s
    user    0m0.001s
    sys     0m0.000s
    

    Code (Text):
    time awk '/NGINX_VERSION/' centmin.sh  
    NGINX_VERSION='1.13.0'       # Use this version of Nginx
    
    real    0m0.001s
    user    0m0.001s
    sys     0m0.000s
    
     
    • Agree Agree x 1
..