[Techtalk] problem with changing directory in a script
Miriam English
mim at miriam-english.org
Mon Sep 14 19:20:36 UTC 2015
OMG! Thank you Amanda and Little Girl. I didn't know about the $HOME
variable. A nice portable solution. Wonderful. :)
On 15/09/15 00:57, Little Girl wrote:
> Hey there,
>
> I'm not sure if these would be of any use, but both of them take me
> to the Desktop in Linux Mint MATE:
>
> test=~/Desktop;cd $test;
>
> test="$HOME/Desktop";cd $test;
>
> Quotes are often the bane of my existence. (:
>
On 15/09/15 01:07, Amanda Babcock Furrow wrote:
> I always use $HOME for ~ in scripts...
>
> Amanda
--
If you don't have any failures then you're not trying hard enough.
- Dr. Charles Elachi, director of NASA's Jet Propulsion Laboratory
-----
Website: http://miriam-english.org
Blogs: http://miriam-e.dreamwidth.org
http://miriam-e.livejournal.com
More information about the Techtalk
mailing list