Use "
instead of '
to allow expansion of your $L
variable.
More Related Contents:
- Erroe in script
- How to pass a variable containing slashes to sed
- Fast way of finding lines in one file that are not in another?
- sudo echo “something” >> /etc/privilegedFile doesn’t work [duplicate]
- How to detect the OS from a Bash script?
- While-loop subshell dilemma in Bash
- Variables in bash seq replacement ({1..10}) [duplicate]
- ffmpeg in a bash pipe
- Check existence of input argument in a Bash shell script
- How to simulate the environment cron executes a script with?
- How do I grab an INI value within a shell script?
- How to obtain the absolute path of a file via Shell (BASH/ZSH/SH)?
- How to make the ‘cut’ command treat same sequental delimiters as one?
- How to add to the end of lines containing a pattern with sed or awk?
- How can I ‘echo’ out things without a newline?
- How to increment a date in a Bash script
- Why source command doesn’t work with process substitution in bash 3.2?
- error while running “source .vimrc”
- find files older than X days in bash and delete
- Parsing a CSV file using gawk
- How to remove filename prefix with a Posix shell
- Why do I get “/bin/sh: Argument list too long” when passing quoted arguments?
- Validate date format in a shell script
- How can you diff two pipelines in Bash?
- How execute bash script line by line?
- How to update one file in a zip archive
- Store output of sed into a variable [duplicate]
- How to redirect a program that writes to tty?
- What is the proper way to test a Bash function’s return value?
- How to loop over files in natural order in Bash?