Search Results

Search: Posts Made By: EwanD
72,137
Posted By EwanD
Any options with "cp" to create a folder if it doesn't exist.
I've created a backup and restore script and it's working fine so it's all about making it more robust at the moment for me. Let's say the user has a folder in their home directory for word...
1,813
Posted By EwanD
Hmm while do loops.
Hey guys, i'm trying to write a script which checks user input. If the input provided is wrong i.e. " " then I want to reprompt the user to enter it again and again etc. until it's OK.

Here's my...
6,204
Posted By EwanD
Extracting .tar files.
Hey guys complete n00b here so I'll try my best at explaining.

I'm creating a backup and restore utility and decided to use tar. I create a backup folder in each user's account and when backing...
1,965
Posted By EwanD
Thanks
Thanks a lot :b::D
1,965
Posted By EwanD
Simple scripting.
echo "what is your username?"
read username
echo $username
echo /home/$username
$backup="backup"
$restore="restore"
#
#
if [$username == ""]
then
echo "No username provided"
else
echo "hi...
Showing results 1 to 5 of 5

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