276

What is the simplest way to grab all the given arguments for a bash script and pass them all into another command within the script? For example:

Command Line:

./runProgram.sh [ARGS HERE]

Script:

#! /bin/bash
cd bin/
java com.myserver.Program [ARGS HERE]
zahypeti
  • 183
  • 1
  • 8
Urda
  • 5,460
  • 5
  • 34
  • 47

0 Answers0