Wildcards In UNIX

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Wildcards In UNIX
# 8  
Old 04-04-2002
MySQL Phew...

Okay - so I'd been searching all day for the answer to this and, wouldn't you know, shortly after joining these boards and posting the above plea for help... I found the answer (on www.shellscript.com)...

The syntax for the above is (and I was fairly close):

ls *.{M,m}{P,p}3

which returns every .mp3 lin the directory - regardless of case...


Smilie LJS Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Renaming with wildcards

Hi, I'm new to Unix, but have a directory which has many files in it, well over 1000. The files are called : M07GO.STOPE0001 M07GO.STOPE0002 M07GO.STOPE0003 M07GO.STOPE0004 etc... I would like to rename them to the following : M070001.bin M070002.bin M070003.bin M070004.bin etc....... (4 Replies)
Discussion started by: rnmuk
4 Replies

2. Shell Programming and Scripting

Wildcards and exceptions

Hello: I have a very basic question. I'd like to select all files except for one file. For example, say I want to move all of the files in my current directory to a subdirectory called archive, I would use mv ./* archive/ But what if I want to move all files except for README.txt? Is there an... (19 Replies)
Discussion started by: Danny.Boy
19 Replies

3. UNIX for Advanced & Expert Users


These 2 websites do a GREAT job of explaining different types of wildcards. I learned about the categories of characters which I never knew about at all. GNU/Linux Command-Line Tools Guide - Wildcards GREP (1 Reply)
Discussion started by: cokedude
1 Replies

4. UNIX for Dummies Questions & Answers

wildcards in path

Is there some rule about using wildcards in path? Say I want to create a file, but one of the directories in the path is called 1433d.default and on different machines it will be called <some other string>.default touch ~/Library/Application/*.default/myfile In theory I thought that... (5 Replies)
Discussion started by: glev2005
5 Replies

5. UNIX for Dummies Questions & Answers

wildcards NOT

Hi All Please excuse another straightforward question. When creating a tar archive from a directory I am attempting to use wildcards to eliminate certain filetypes (otherwise the archive gets too large). So I am looking for something along these lines. tar -cf archive.tar * <minus all *.rst... (5 Replies)
Discussion started by: C3000
5 Replies

6. UNIX for Dummies Questions & Answers

ls with wildcards

ok, I'm trying to write a script file that lists files with specific elements in the name into a txt file, it looks like this ls s*.dat > file_names.txt can't figure out whats wrong with that line, any ideas? thanks in advance (10 Replies)
Discussion started by: benu302000
10 Replies

7. UNIX for Dummies Questions & Answers


when writing a shell script (bourne) and using a unix command like 'ls' is there anything special you need to do to use a wildcard (like *)? (3 Replies)
Discussion started by: benu302000
3 Replies

8. UNIX for Dummies Questions & Answers

Wildcards in VI

I'm trying to delete lines from a large text file using VI. Every line that I am wanting to delete start with 'S' - all others do not. (A list of users) I've tried using * but doesn't seem to like it...any ideas... Doesn't have to be VI - but I'm better with VI than sed/awk. (8 Replies)
Discussion started by: peter.herlihy
8 Replies

9. UNIX for Dummies Questions & Answers

ls - wildcards and global use

Hiya, I want to list all files missing a certain pattern and/or filename pattern on the entire drive. In DOS I would type (for instance): dir \t*.doc /s /a which should find all doc files whose filename starts with `t'. How do I do that in a unix shell? Can it be done w/ ls at... (5 Replies)
Discussion started by: ropers
5 Replies

10. Programming

Makefile wildcards

Using a makefile I want to compile all .c files in the current directory without specifying them directly and then link their associated .o files into a library. How do I do this ? Thanks. (1 Reply)
Discussion started by: rcscott
1 Replies
Login or Register to Ask a Question
spell(1)						      General Commands Manual							  spell(1)

spell, spellin, spellout - Finds spelling errors SYNOPSIS
spell [-b] [-i | -l] [-v | -x] [-d hash_list] [-s hash_stop] [-h history_list] [+word_list] [file...] spellin [list] [number] spellout [-d] list The spell command reads words in file and compares them to those in a spelling list. Default files contain English words only, but you can supply your own list of words in other languages. STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: spell: XCU5.0 Refer to the standards(5) reference page for more information about industry standards and associated tags. OPTIONS
[Tru64 UNIX] The following options are for the spell command only. Checks for correct British spelling. Besides preferring centre, colour, programme, speciality, travelled, and so on, this option causes spell to insist upon the use of the infix -ise in words like stan- dardise. [Tru64 UNIX] Specifies hash_list as the alternate spelling list. The default is /usr/lbin/spell/hlist[ab]. [Tru64 UNIX] Speci- fies history_list as the alternate history list that is used to accumulate all output. The default is /usr/lbin/spell/spellhist. [Tru64 UNIX] Suppresses processing of included files through the and troff macros. If the -i and -l options are both specified, the last one of the two options entered on the command line takes effect. [Tru64 UNIX] Follows the chain of all included files (.so and spell(1)