WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: if the file already exists; What is the command not to use the WGET command!?  (Read 1672 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: 11694
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!?

Offline polikuo

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