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

change php version devilbox fish function

# 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 :: how to check cpu temperature ubuntu 20.04 
Shell :: mirror image via command line 
Shell :: libopusfile.so.0 terminal download 
Shell :: grep files modified since yesterday 
Shell :: untracked by gitlab 
Shell :: how to add raylib to python 
Shell :: linux list usb device and port speed 
Shell :: how to install bokeh version 2.4.1 rather than 2.4.2 
Shell :: git add back to tracking which is removed file from tracking without deleting 
Shell :: LF will be replaced by CRLF hassan 
Shell :: what is the bat code to the print hello world 
Shell :: pylint install pi 
Shell :: team vewer for ubuntu in cmd 
Shell :: test wifi password 
Shell :: how to update all repositories in manjaro using terminal 
Shell :: install dotnet 5 on pi os 
Shell :: como excluir tag remota 
Shell :: powershell add-type if not exists 
Shell :: bash combine Exit command and exit codes to build quick logic 
Shell :: automatically install all dependences of a package in R 
Shell :: to remember all commands typed in multiple terminal 
Shell :: how to copy stuff in git ter 
Shell :: get logs of local git branches 
Shell :: angular new site 
Shell :: powershell ssh key permissions 
Shell :: vite dev host 
Shell :: with great power comes great responsibility ubuntu 
Shell :: dpkg: error processing archive /var/cache/apt/archives/influxdb_1.8.10-1_amd64.deb (--unpack): 
Shell :: set dynamic values with kubernetes yaml file template 
Shell :: btrfs get disk utilization for subdirectory 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =