Results 1 - 6 of about 6 results out of about 111742 pages. (0.01 seconds)
- BashFAQ/006 . . . 2 matches
- ...want to assign '''a single line''' to the variable, you can use `read` and Bash's [[HereDocument|here string]] syntax:
{{{#!highlight bash
# Bash/ksh93/mksh/zsh
ref=realvariable
I...
- TemplateFiles . . . 1 match
- ... it in sh, a portable but potentially dangerous alternative involves constructing a HereDocument and feeding the result to a shell for expansion:
{{{
{ echo "cat <<EOF"
cat "$te...
- Quotes . . . 1 match
- ...esac
}}}
=== Here Documents ===
Quote-removal never applies to the contents of a [[HereDocument|here document]]
{{{
$ arr=(words in array); cat <<EOF
> These are the "${arr[*]}"...
- CategoryShell . . . 1 match
- ...##master-page:CategoryTemplate
##master-date:Unknown-Date
#format wiki
#language en
These pages discuss issues associated with the Unix command line shells, especially bash, but a...
- BashGuideFeedback . . . 1 match
- ... utilities can be very useful. - [[Lhunath]]
Feedback: I could not understand the HereDocument page (found another source that helped) and I think the page could do with working ...
- BashFAQ/005 . . . 1 match
- ...e file. Newlines are added to the ends of files by most text editors, and also by [[HereDocument|Here documents]] and [[HereStromg|Here strings]]. Most of the time, this is only an...