Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash script change directory run a command

#!/bin/sh
cd "$1" && shift && "$@"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #script #change #directory #run #command
ADD COMMENT
Topic
Name
8+5 =