answersLogoWhite

0

Well the question is not particularly specific. I assume that we are talking about shell and in this example I would refer to "bash" shell.

#!/bin/bash

echo $1

this simple script will print first parameter passed to it.

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you run scripts from QXDM command prompt?

To run scripts from the QXDM command prompt, first, ensure that your script file is saved with a .cmd or .bat extension. You can then open the QXDM command prompt and navigate to the directory where your script is located using the cd command. Once in the correct directory, type the name of the script file and press Enter to execute it. Ensure that any required parameters or inputs are provided as specified in the script.


Can a screen writer act his or her script?

Yes. One notable example is Sly Stallone in the first Rocky film.


What does sys.argv do on python?

sys.argv is a way to access command line arguments in Python. sys.argv is an array of all the command line parameters, where the first value is the name of the file being run. For example, let's say you have a python script named example.py that looks like this: import sys print(sys.argv) This script will simply print the command line parameters in an array. If, for example, you run the script from a command line as python example.py param1 param2 the output will be ['example.py', 'param1', 'param2']


Which command be used to clear the screen and display the operating system prompt on the first line of the display?

t


How do you increment hex value in c?

First a variable in numeric data type is to be defined. Then increment the number using the ++ command syntax of C,


How do make the screen on a mac look like an X ray glow?

you click control option command first then 8


How do you use VIP Commands in Roblox?

VIP commands are generally used by typing a command in the chat box, and pressing enter. A script in the game will then pick up this command, and do something in the game. To use VIP commands you first need to have a VIP commands script in the game that has you listed as a VIP. After you do this, save your place, and play the game. Also, most VIP command scripts will give you a list of the commands that you can use if you chat 'Commands'


Where can you listen to the song 'For The First Time' by The Script?

Go to YouTube.com, and type in Script For The First Time.


When was For the First Time - The Script song - created?

For the First Time - The Script song - was created on 2010-08-20.


How do you fix windows script host failed 0x80020102?

To fix the Windows Script Host error 0x80020102, first, ensure that your Windows Script Host is enabled. You can do this by checking the Windows Registry: open the Registry Editor and navigate to HKEY_LOCAL_MACHINE\Software\Microsoft\Windows Script Host\Settings. Ensure that the "Enabled" entry is set to 1. If it is not present, create a new DWORD value named "Enabled" and set it to 1. Additionally, ensure your system is free from malware and run a system file check using the command sfc /scannow in an elevated Command Prompt to repair any corrupted files.


Is the highest Either variable first?

The high is power of either variable is the first


How can you execute a PHP script using command line?

2 Methods: 1. You execute your php binary (in linux, make sure you have php-cli installed) and pass the script as an argument. EG ($: /usr/bin/php /home/user/script.php) 2. A sh'bang in the first line of your script, with the full path of your php executable: #!/usr/bin/php -q <?php ScriptStuff(); ?>