[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash usage.



On 5 November 2017 at 08:31, David Margerison
<deltam@electrosonics.com.au> wrote:
>
> Demo example from an interactive bash command line on this PC:
>
> $ devname=/dev/sda6 ; dirname=/mnt/p/A ; if mount | grep -q --
> "$devname on $dirname" ; then echo "$devname is mounted on $dirname" ;
> fi

The above command is unclear because it was wrapped by my email client.

The command is typed at the shell prompt (first character "$") and must be
all on the same line, from the first character "d" of devname to the final
character "i" of fi.


Reply to: