Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

fish function to change php version .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 :: install mysql majaro 
Shell :: pip install dali 
Shell :: mount android device [using simple-mtpfs] in linux 
Shell :: remove data from realtime database 
Shell :: best ubuntu torrent downloader 
Shell :: android studio avd system image download 
Shell :: hide npm fund 
Shell :: assign diff result into a variable in shell script 
Shell :: ctrl+z equivalent in vim 
Shell :: after git merge it want to commit message 
Shell :: powershell cat equivalent 
Shell :: Copying Folder to Server 
Shell :: git pull from master why 
Shell :: bash script bell ping 
Shell :: wsl start windows program 
Shell :: Error: Cannot make for win32 and target squirrel: the maker declared that it cannot run on win32 
Shell :: mv selected directory 
Shell :: express-rate-limit github 
Shell :: post clone remove line in file 
Shell :: boot.img unpack linux 
Shell :: ansible-playbook limit tag 
Shell :: groovy parse dictionary 
Shell :: cant find typesizes.h 
Shell :: sudo apt-get -y install unity-greeter 
Shell :: ubuntu command to make a soft link 
Shell :: How install CoolTerm on Linux? 
Shell :: how to install red hawk 
Shell :: windows auto ip address change script 
Shell :: ifconfig wlan0 hw ether not working 
Shell :: partial match find terminal "find" 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =