Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

printing arguments in a script


#!/bin/bash

# example of using arguments to a script
echo "arg 1: $1"
echo "arg 2: $2"
echo "Total number of arguments is $#" 
Comment

PREVIOUS NEXT
Code Example
Shell :: hadoop get files 
Shell :: linux printf leading zeros 
Shell :: wifi falling out 
Shell :: java scrip loop array 
Shell :: curl-tomcat 
Shell :: helm set environment variables 
Shell :: ubuntu /not root-owned 0:1001 
Shell :: how install gradel 
Shell :: install ambrella uml ubuntu 
Shell :: heredoc remove leading space tabs linux bash 
Shell :: restart service hpux 
Shell :: -z option in shell script 
Shell :: mark drive as faulty mdadm linux 
Shell :: git view modified lines 
Shell :: papermc no gui 
Shell :: install avogadro on ubuntu 
Shell :: git diff list all pages 
Shell :: pass variables to bash options 
Shell :: raspberry pi autostart gui application 
Shell :: installing heroku for deployment through command line 
Shell :: How To Edit Log File On Batch Script 
Shell :: create desktop icon for a zip installed program 
Shell :: script inside script bash 
Shell :: powershell 
Shell :: ssh key for github 
Shell :: how to create ssh key for github 
Shell :: react navigation 5 install 
Shell :: gitignore command 
Shell :: git cache credentials 
Shell :: linux get list interfaces with ip address 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =