delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/02/17/22:15:38

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
NNTP-Posting-Date: Sun, 17 Feb 2008 21:02:10 -0600
From: "miner_tom" <tom_nospam AT yahoo DOT com>
Newsgroups: comp.os.msdos.djgpp
References: <OeCdnRHck8tf4SXanZ2dnUVZ_veinZ2d AT giganews DOT com> <200802171940 DOT m1HJeoGS029849 AT envy DOT delorie DOT com>
Subject: Re: Need to find "mv"
Date: Mon, 18 Feb 2008 19:00:42 -0800
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198
Message-ID: <d5qdnWKXurivaCXanZ2dnUVZ_ruqnZ2d@giganews.com>
Lines: 45
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-1ZQNY0GaEwfJ4M8anZ0c5bVkNo+yjPmyAQl9KDjSueTEypCaMPL8KcD2a5BWEU/LzQA4QVjoHHuhCaY!/gPpPS2fsojyjYW9RXhjgbVhcLC5rQPC4dn8ocAa0zM3x207MMvdwQAABfdwqyt9XpA5u54mZxM=
X-Complaints-To: abuse AT giganews DOT com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.37
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Thank you very much.

I have downloaded the proper utility packages and now have "mv" working.

If I might ask one more question, I am having trouble getting conditional 
statments (if, for, etc) working with the bash shell. I have downloaded 
bsh204b and installed it. I have made up some simple shell scripts that I 
run by invoking:

>bash shellscript

One simple script that I have working is

'mv FILENAME.C filename.c'.

Than works.

However, I am having trouble with conditional statememts, like

if [-f file.c]; then
    echo "file.c"'
fi


I get an error something like
"shellscript: [-f command not found.

What have I done wrong in the syntax. Admitedly, it has been a lot of years 
since I have written bash shell scripts for unix/linux.

Thank You
Tom




"DJ Delorie" <dj AT delorie DOT com> wrote in message 
news:200802171940 DOT m1HJeoGS029849 AT envy DOT delorie DOT com...
>
> You need fileutils, in v2gnu/fil41b.zip
>
> Try downloading the file LISTINGS.zip for listings of what's in each
> of the many zip files. 


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019