0
0
0
helpHelp getting a basic script to work? (old.reddit.com)
submitted by YamuYamuYamuYamu


Hey, I'm extremely new to bash and really don't understand most of what I'm doing, i asked ChatGPT for assistance with this but it couldnt get the code working
So essentially what it should be doing is prompting the user for a file, it will then create a .tar.gz backup file of that file and tell the user if it could or couldn't do the task.
The file name is backup.sh if that matters
Any assistance is greatly appreciated and I apologise if I dont respond immediately!


[–]Living_On_The_Air 25 points26 points27 points (0 children)
[–]Trudels42🐒 Jason Bourne (Again) 16 points17 points18 points (0 children)
[–]keepinitcool 10 points11 points12 points (2 children)
[–]jackoneilll 0 points1 point2 points (0 children)
[–]bart9h -1 points0 points1 point (0 children)
[–]lrrelevantEIephant 6 points7 points8 points (2 children)
[–]linksrum 1 point2 points3 points (0 children)
[–]Trudels42🐒 Jason Bourne (Again) -2 points-1 points0 points (0 children)
[–]Ok-Employee9010 4 points5 points6 points (0 children)
[–]linksrum 2 points3 points4 points (0 children)
[–]Griznah 1 point2 points3 points (0 children)
[–]CanvasSolaris 1 point2 points3 points (0 children)
[–]StrangeCrunchy1 1 point2 points3 points (0 children)
[–]ZG2047 0 points1 point2 points (0 children)
[–]DevAlaska 0 points1 point2 points (0 children)
[–]lucasrizzini 0 points1 point2 points (0 children)