Search Results

Search: Posts Made By: bionicfysh
9,261
Posted By bionicfysh
shell scripting...
Dear all,

Thanks so much for the feedback.
I have tried the following:

vi new

ls $HOME
ls ~
ls ~toto

they all respond accordingly

however:

user=toto
ls ~$user

it returns:...
9,261
Posted By bionicfysh
shell scripting...
Hi guys,

very sorry but I tried your recommendations, and this is what I get:

in script: myscript

ls ~
ls ~root
user=you
ls ~$user

OUTPUT
~: Ce fichier ou ce rÚpertoire n'existe pas...
9,261
Posted By bionicfysh
shell script queries: $home; broadcast ping
Dear all,

This is the Bionic Fysh again. I have two quick questions:

1- when writing shell scripts, how does one allow the tilda ~ into the script ?
e.g
ls ~;
ls ~me;
user=you;
ls ~$user ...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 11:03 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy