WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline xor

  • Hero Member
  • *****
  • Posts: 1268
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: 11624
Hi xor
Code: [Select]
FILENAME="SomeFile.tcz"
[ -f "$FILENAME" ] || w_get http://blah/blah/blah/"$FILENAME"

Offline xor

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

Online polikuo

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