I am trying to re-name all files ending in .sah in my home directory. So, I type < mv *.sah *.zah > ~ result : failure . After looking at <man mv> I am totally confused :( How should this command be given ? thanks :) -- ____________ sent on Linux ____________ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
tabanna wrote:
I am trying to re-name all files ending in .sah in my home directory.
So, I type < mv *.sah *.zah > ~ result : failure .
After looking at <man mv> I am totally confused :(
How should this command be given ?
thanks :) --
There may be smarter ways to do this but here is one way: for f in *.xxx ; do mv "$f" "${f%.xxx}.zzz"; done This will rename all *.xxx files to *.zzz $f represents each file ending in ".xxx". ${f%.xxx} strips off the ".xxx" then we add on ".zzz" Put it in a small shell script (called mvext, for "move extension"): #! /bin/bash for f in *.$1 ; do mv "$f" "${f%.$1}.$2"; done Now you can say mvext xxx zzz to change all *.xxx to *.zzz -- ____________________________________________________________________ Robert Paulsen -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
for f in *.xxx ; do mv "$f" "${f%.xxx}.zzz"; done
This will rename all *.xxx files to *.zzz
The reason why mv *.xxx *.zzz works in DOS, but not in Unix is that Unix shells expand wildcards and pass the whole list of files to 'mv'. __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
The reason why mv *.xxx *.zzz works in DOS, but not in Unix is that Unix shells expand wildcards and pass the whole list of files to 'mv'.
ure, but $ mv '*.xxx' '*.zzz' will not be expanded and could have worked in unix (but doesn't, will return: mv: *.xxx: No such file or directory) -- hw -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, Is there a package/tool/technique that will enable me to send an SMS message to my mobile when a 'job' completes instead of an email? For instance, I have several CRON jobs that send an email if a 'script' is unsuccessful, and I would like it to send me a message on my mobile phone instead. Cheers Phil -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
At 18:52 28-05-00, you wrote:
Hi,
Is there a package/tool/technique that will enable me to send an SMS message to my mobile when a 'job' completes instead of an email?
For instance, I have several CRON jobs that send an email if a 'script' is unsuccessful, and I would like it to send me a message on my mobile phone instead.
You might want to ask your mobile phone service provider about that... The question you want to ask is: Do you have an email to SMS gateway? or if the person you are talking to is not technically inclined: Does my phone have an email address? If they do, you should probably send messages to an address like XXXXX@sms.phonecompany.com, where XXXXX is your mobile phone number. If they don't, I think the only option would be to get a second mobile and have it hooked up to your computer and send the SMS through it. Probably too expensive and time-consuming. Regards Ole Kofoed Hansen okh@post.cybercity.dk ICQ# 25773325 -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Phil Shrimpton wrote:
Hi,
Is there a package/tool/technique that will enable me to send an SMS message to my mobile when a 'job' completes instead of an email?
For instance, I have several CRON jobs that send an email if a 'script' is unsuccessful, and I would like it to send me a message on my mobile phone instead.
Cheers
Phil
Hi Phil, I cannot say much about that, but remembered that collegues at work do exactly the thing. There is "Yaps", available via: http://metalab.unc.edu/pub/Linux/apps/serialcomm/machines/!INDEX.html If it's not on the SuSE CD The sad thing is, that it will work only with modems (not ISDN) and not all numbers are supported. (Speaking about germany. No clue for the US) It also involves messing around with /etc/yaps.rc. If this doesn't help, well I'll get you into direct contact. These things seem to be provider dependent. Good luck Juergen
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
-- =========================================== __ _ Juergen Braukmann juergen.braukmann@gmx.de| -o)/ / (_)__ __ ____ __ Tel: 0201-743648 dk4jb@db0qs.#nrw.deu.eu | /\\ /__/ / _ \/ // /\ \/ / ===========================================_\_v __/_/_//_/\_,_/ /_/\_\ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi, On Sun, May 28 2000 at 17:28 +0200, Håvard Wall wrote:
The reason why mv *.xxx *.zzz works in DOS, but not in Unix is that Unix shells expand wildcards and pass the whole list of files to 'mv'.
sure, but $ mv '*.xxx' '*.zzz' will not be expanded and could have worked in unix (but doesn't, will return: mv: *.xxx: No such file or directory)
If mv expanded such a patterns it would be impossible to handle file names with embedded asterisks. There's another tool for this specific job: mmv. mmv "*.xxx" "#1.zzz" Ciao, Stefan -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
you need mmv (multiple move), see man mmv. On Sat, 27 May 2000, tabanna wrote:
I am trying to re-name all files ending in .sah in my home directory.
So, I type < mv *.sah *.zah > ~ result : failure .
After looking at <man mv> I am totally confused :(
How should this command be given ?
thanks :) -- ____________ sent on Linux ____________
-- This sig brought to you by SuSE 6.3 and sendmail. Linux - you know it makes sense. -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (9)
-
eugene_tyurin@yahoo.com
-
haavardw@ifi.uio.no
-
juergen.braukmann@ruhr-west.de
-
k01164@ko.sdu.dk
-
paulsen@texas.net
-
phil@shrimpton.co.uk
-
stefan.troeger@wirtschaft.tu-chemnitz.de
-
tabanna@aig.forthnet.gr
-
wulfie@wulfric7.co.uk