WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline xor

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

Online Rich

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

Offline xor

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

Offline polikuo

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