You use $1
, $2
in your script. E.g:
date1="$1"
date2="$2"
sed "s/$date1/$date2/g" wlacd_stat.xml >temp.xml
mv temp.xml wlacd_stat.xml
More Related Contents:
- When should I wrap quotes around a shell variable?
- How do I test if a variable is a number in Bash?
- What does set -e mean in a bash script?
- What’s the magic of “-” (a dash) in command-line parameters?
- Pseudo-terminal will not be allocated because stdin is not a terminal
- Is there a “goto” statement in bash?
- Forcing bash to expand variables in a string loaded from a file
- Script parameters in Bash
- How can I generate new variable names on the fly in a shell script?
- Bash while read loop extremely slow compared to cat, why?
- Redirect STDERR / STDOUT of a process AFTER it’s been started, using command line?
- Find multiple files and rename them in Linux
- Avoid gnome-terminal close after script execution?
- How can I loop over the output of a shell command?
- Why does /bin/sh behave differently to /bin/bash even if one points to the other?
- How can I kill a process by name instead of PID, on Linux? [duplicate]
- [ :Unexpected operator in shell programming [duplicate]
- ‘find -exec’ a shell function in Linux
- Using the passwd command from within a shell script
- Command to get time in milliseconds
- Linux/Unix command to determine if process is running?
- Syntax with pound and percent sign after shell parameter name [duplicate]
- Insert multiple lines into a file after specified pattern using shell script
- Get ceiling integer from number in linux (BASH)
- How can I trim white space from a variable in awk?
- How do you filter out all unique lines in a file?
- bash, command not found [duplicate]
- How to perform a for-each loop over all the files under a specified path?
- Write a bash shell script that consumes a constant amount of RAM for a user defined time [closed]
- How to create a dynamic variable and assign value to it?