How to use bash array?

How to set NGINX max post size?

Maslosoft
  • Blog
  • Products
  • Apps
  • Websites
  • Learn
  • Contact

More results
Home page Knowledge Base How to pass all parameters to different bash script?

How to pass all parameters to different bash script?

bash shell

In other words, how to get all parameters passed to current script and optionally forward to other one. 

Bash has special variable containing those parameters: $@

Example of using $@

#!/bin/bash
./my-script $@

You might also like:

How to use bash array?

bash array shell

How to use bash array?
How to <i>echo</i> to file with <i>sudo</i>?

bash echo sudo

How to <i>echo</i> to file with <i>sudo</i>?
How to synchronize files from remote server?

bash ssh rsync

How to synchronize files from remote server?
How to clean old snaps?

ubuntu linux snap cleanup bash

How to clean old snaps?
How to list manually installed (added) packages in Ubuntu

ubuntu linux bash apt shell

How to list manually installed (added) packages in Ubuntu
How to list all services in Ubuntu 18.04?

18.04 ubuntu systemctl services bash 20.04

How to list all services in Ubuntu 18.04?
How to check if service is running with CRON job?

bash cron services job service

How to check if service is running with CRON job?
Using GPG (GnuPG) with PHP on server

gpg bash php encryption crypto cryptographic

Sign and verify cryptographic signature of file in PHP.
Using GPG (GnuPG) with PHP on server
  • Featured Products
  • Framework
  • Mangan
  • Manganel
  • Addendum
  • Signals
  • Embedi
  • Binder
  • Hedron
  • Staple
  • Awe Share
  • Playlist
  • Miniview
  • Whitelist
  • About
  • Contact
  • Privacy policy
  • Cookies policy
  • External Resources
  • GitHub
  • Packagist

Contact us

Maslosoft LLC

16192 Coastal Highway
Lewes, Delaware 19958, USA

  contact@maslosoft.com

  +48 514 920 103


© 2012 - 2023 Maslosoft LLC

CMS and Hosting Bene Best