WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: if the file already exists; What is the command not to use the WGET command!?  (Read 419 times)

Offline xor

  • Hero Member
  • *****
  • Posts: 1163
if the file exists; To avoid using the wget i command, (I'm looking for a script code example)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 10149
Hi xor
Code: [Select]
FILENAME="SomeFile.tcz"
[ -f "$FILENAME" ] || w_get http://blah/blah/blah/"$FILENAME"

Offline xor

  • Hero Member
  • *****
  • Posts: 1163
question ; Is wget default download location always "/home/" folder!?

Offline polikuo

  • Hero Member
  • *****
  • Posts: 665
No, the default is your current working directory.