Suggestion for help-page?
Hi!
I want to write a tiny simple bash script for moving downloaded mp3s from my /home/me directory to my /music directory.
(Due to /music being fat32, it's actually a process, cuz permissions with winFSs are goofy)
Can someone suggest a very VERY newbie-friendly
help-page for beginners trying to write a script?
Thanks!
sl
=====
**************************
In cyberspace nobody can hear you scream.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
try this
--begin--
#!/bin/bash
cp -uv /home/me/*.mp3 /music/
--end--
All it's will do is copy any file ending in .mp3 to your /music directory.
Note: Linux is case senstive and Windows is not, so the limit this script has is that it wont copy a MP3 file. Easily fixed and I know there's neater way of doing it, but I don't how to do it. Also when you create the file don't
forget to make it executable, meaning... "chmod u+x filename "
Darryl
P.S. No worries about permissions, fat32 doesn't support them. Note: leave out the "begin" and "end" lines
Quoted 18 lines · Staci
Hi!
I want to write a tiny simple bash script for moving downloaded mp3s from my
/home/medirectory to my /music directory.
(Due to /music being fat32, it's actually a process, cuz permissions with winFSs are goofy)Can someone suggest a very VERY newbie-friendly
help-page for beginners trying to write a script?Thanks!
sl=====
**************************
In cyberspace nobody can hear you scream.
Quoted 9 lines
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
See, this is why I needed a help page.
I made one called test, it contained just this...
#!/bin/bash
cp /home/staci/*.mp3 /
cp /*.mp3 /industgoth/new
rm /*.mp3
rm /home/staci/*.mp3
That's the sequence I'd go thru if I did it by hand. And I ran it as root cuz only root has access to that /industgoth dir.
And they're GONE. All 20 or so of them. They're not in /industgoth/new, not anywhere. Why??? :(
sl
Quoted 53 lines · --- 1stFlight <[email protected]> wrote:
try this
--begin--
#!/bin/bashcp -uv
/home/me/*.mp3/music/--end--
All it's will do is copy any file ending in .mp3 to your /music directory.
Note: Linux is case senstive and Windows is not, so the limit this script has
is that it wont copy a MP3 file. Easily fixed and I know there's neater way
of doing it, but I don't how to do it. Also when you create the file don't
forget to make it executable, meaning... "chmod
u+x filename "Darryl
P.S. No worries about permissions, fat32 doesn't
support them. Note: leave out
the "begin" and "end" linesQuoted 3 lines · Staci
Hi!
I want to write a tiny simple bash script for
moving
Quoted 3 lines
downloaded mp3s from my
/home/medirectory to my
/music directory.
(Due to /music being fat32, it's actually aprocess,
Quoted 12 lines
cuz permissions with winFSs are goofy)
Can someone suggest a very VERY newbie-friendly
help-page for beginners trying to write a script?Thanks!
sl=====
**************************
In cyberspace nobody can hear you scream.Quoted 6 lines
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
-
To unsubscribe from this list: send the line
Quoted 7 lines
"unsubscribe linux-newbie" in
Quoted 2 lines
the body of a message to [email protected] More majordomo info at
http://vger.kernel.org/majordomo-info.html
Quoted 1 line
Please read the FAQ at
=====
**************************
In cyberspace nobody can hear you scream.
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs