Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

get additional parameters linux scripting

$ cat myscript
#!/bin/bash
echo "First arg: $1"
echo "Second arg: $2"
$ ./myscript hello world
First arg: hello
Second arg: world
Comment

PREVIOUS NEXT
Code Example
Shell :: add a home directory for existing user 
Shell :: install bootstrap in angular 
Shell :: how to update code in github 
Shell :: bash terminal function display all arguments 
Shell :: nohup output file 
Shell :: make shortcut folder in htdocs 
Shell :: install wordcloud anaconda jupyter notbook 
Shell :: add user to dockerfile 
Shell :: how to reset source list ubuntu 
Shell :: add dnf repo command 
Shell :: adb screen record 
Shell :: flask 
Shell :: adding in ssh agent 
Shell :: creating a branch in git 
Shell :: shell sort algorithm is an example of? 
Shell :: Failed to load module "canberra-gtk-module" 
Shell :: conda install tokenizers 
Shell :: how to go back in terminal 
Shell :: angular bootstrap install 
Shell :: npm uninstall package 
Shell :: could not find tools.jar linux 
Shell :: run production environment nodejs 
Shell :: rsync only updated files 
Shell :: how to install jupyter notebook 
Shell :: github create repo 
Shell :: debian get minor version 
Shell :: ubunto give permission for a user 
Shell :: git log by author 
Shell :: vlc media player download for fedora 
Shell :: git exclude file 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =