ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
finally i want to cp all this list...
so i 'nested' the above command in a copy as:
Quote:
nass@stargaze:~/musicstuff/Mp3 to Wav$ cp `ls -h [Mis* | grep mp3` ~/winmx
cp: invalid option -- \
Try `cp --help' for more information.
so this fails. now while i was going for a long shot, and not entirely sure that bash can generate this list automatically, and use it to run the cp command... i went for it...
but it doesn't work...
damn, this is quite right... i was looking for a complex way when it was so simple...
no comment please:P
hehe
btw (off topic),
slimm609, on your new pc,
-New machine-- Intel Q9650 quad-core 2.66 1333mhz FSB -
NVIDIA ultra SLI 790i - 4 GB patriot Low-latency ram DD3 1333mhz - 2x EVGA nvidia 512M 8800 GT running in SLI - 160 GB 10K raptor system drive with 2x 750GB storage drives - 24" samsung 1650x1200 5ms LCD.
are you running some linux distro?winXP?Vista? basically i'm curious if linux kernel fully utilizes things like the Quad-core, the SLI configuration...
Square backets in file names doesn't work very well because they are meta-characters. [Aa] matches A or a.
You need to escape them:
cp \[Andrew*.mp3 ~/Winmx
Putting the whole thing in quotes won't work because that will also escape the wild card "*".
@jschiwal: Is that really needed in this case? The shell will expand the [Mis*.mp3, which will put the escape codes in there where needed. cp will get the correctly escaped files from bash.
I must admit that you should use \[Mis, even if it is just(??) for form.
damn, this is quite right... i was looking for a complex way when it was so simple...
no comment please:P
hehe
btw (off topic),
slimm609, on your new pc,
-New machine-- Intel Q9650 quad-core 2.66 1333mhz FSB -
NVIDIA ultra SLI 790i - 4 GB patriot Low-latency ram DD3 1333mhz - 2x EVGA nvidia 512M 8800 GT running in SLI - 160 GB 10K raptor system drive with 2x 750GB storage drives - 24" samsung 1650x1200 5ms LCD.
are you running some linux distro?winXP?Vista? basically i'm curious if linux kernel fully utilizes things like the Quad-core, the SLI configuration...
thank you
I have run linux on it. The SLI is done on board so it is seen as 1 video card and the quad-core just shows as 4 CPUs. I run vista on it for gaming with dx 10 but it is dual-booted.
If you don't have the closing bracket, then it would work. However:[Misuse]- will match M- or i- or s- or u- or e-.
One thing that you can do is use auto completion. If you type in [Misuse]- and press the TAB key, the first part will be replaced with \[Misuse\]-.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.