Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

change php version devilbox fish

function switch_php
    set input_file ~/devilbox/.env
    if grep 'PHP_SERVER='$argv $input_file
        sed -i 's/^PHP_SERVER/#PHP_SERVER/' $input_file
        sed -i 's/^#PHP_SERVER='$argv'/PHP_SERVER='$argv'/' $input_file
        grep '^PHP_SERVER*' $input_file
    else
        echo "There is no container for PHP " $argv
    end
end
Comment

fish function to change php version devilbox .env

# switch_php.fish
function switch_php
    set input_file ~/devilbox/.env
    if grep 'PHP_SERVER='$argv $input_file
        sed -i 's/^PHP_SERVER/#PHP_SERVER/' $input_file
        sed -i 's/^#PHP_SERVER='$argv'/PHP_SERVER='$argv'/' $input_file
        grep '^PHP_SERVER*' $input_file
    else
        echo "There is no container for PHP " $argv
    end
end
Comment

PREVIOUS NEXT
Code Example
Shell :: shell replace plus in string 
Shell :: ffmpeg copy video 
Shell :: applicare o salvare file su kubernetes 
Shell :: output and error redirection in linux 
Shell :: install smui top-app-bar 
Shell :: go back to a folder in git 
Shell :: direct admin could not open 
Shell :: git merge branch not including all the file 
Shell :: cuddn version check 
Shell :: bash search in binary file 
Shell :: killall kdevtmpfsi 
Shell :: Adding the daily DevCard to your GitHub profile 
Shell :: localhost/xampp/index.php 
Shell :: The last character of the "bash" prompt is usually 
Shell :: Check the Principal from the keytab file 
Shell :: debian install udev 
Shell :: check node instances 
Shell :: sns.lineplot 
Shell :: debian copy directory 
Shell :: WSL distro startup fail 
Shell :: How to update extension on knime server 
Shell :: install discord on a script 
Shell :: replace the sound of mp4 video linux 
Shell :: how to define a command bash 
Shell :: how many megabytes is a Mbit? 
Shell :: blocked myself from ssh 
Shell :: install mongodb klai 
Shell :: error uncompressing archive : unable to created directory /var/jenkins_home_restore 
Shell :: vbs on linux 
Shell :: caddy default tls folder 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =