Categories
Why doesn't path through variable work?
Works
#!/bin/bash mkdir /home/vasya/Backup/data
#!/bin/bash $dir=/home/$USER/Backup/data mkdir $dir
Answer the question
In order to leave comments, you need to log in
$dir=/home/$USER/Backup/data change to Or even easier
$dir=/home/$USER/Backup/data
#!/bin/bash mkdir /home/$USER/Backup/data
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question