Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash script change directory run a command

#!/bin/sh
cd "$1" && shift && "$@"
Comment

bash script change directory run a command

cd DIRECTORY_HERE; COMMAND_WITH_ARGS_HERE
Comment

PREVIOUS NEXT
Code Example
Shell :: cat first line 
Shell :: version manager 
Shell :: linux grep 
Shell :: poetry requirements 
Shell :: exit branch git 
Shell :: zip folder ssh 
Shell :: bash assign array to variable 
Shell :: merge branch to master 
Shell :: open a file in linux 
Shell :: how to install all your pipenv packages 
Shell :: add colab to github 
Shell :: bash cut delimiter multiple spaces 
Shell :: dockerfile copy folder to container 
Shell :: crear archivos desde cmd 
Shell :: ansible Permission denied (publickey,password). 
Shell :: linux vi 
Shell :: eliminare spooler di stampa 
Shell :: git list files only upto 1-levels 
Shell :: linux alpine install multi package 
Shell :: ho to autostart chrome on linux boot 
Shell :: how to install unijoy in linux 
Shell :: strstr bash 
Shell :: pip install selenium using cmd 
Shell :: build .so file 
Shell :: linux command check cpu type amd or not 
Shell :: install extension ext-gd * in fedora 
Shell :: github filter not label 
Shell :: docker splunk run 
Shell :: ubuntu dock setting 
Shell :: remove and exclude folder in git for upcomming commits 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =