Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: xor on January 14, 2022, 01:42:25 AM

Title: if the file already exists; What is the command not to use the WGET command!?
Post by: xor on January 14, 2022, 01:42:25 AM
if the file exists; To avoid using the wget i command, (I'm looking for a script code example)
Title: Re: if the file already exists; What is the command not to use the WGET command!?
Post by: Rich on January 14, 2022, 09:49:09 AM
Hi xor
Code: [Select]
FILENAME="SomeFile.tcz"
[ -f "$FILENAME" ] || w_get http://blah/blah/blah/"$FILENAME"
Title: Re: if the file already exists; What is the command not to use the WGET command!?
Post by: xor on January 15, 2022, 05:00:31 AM
question ; Is wget default download location always "/home/" folder!?
Title: Re: if the file already exists; What is the command not to use the WGET command!?
Post by: polikuo on January 15, 2022, 06:32:12 AM
No, the default is your current working directory.