The find command is unsuitable for what you are trying to do, plain shell expansion of the pattern (or * if no pattern) is a better option
If that fails to work for you, perhaps you aren't quoting your pattern and as a result the expansion is happening outside your script'
ie. call it like so
or in the case of your script above
Last edited by Skrynesaver; 06-07-2011 at 10:05 AM..
Reason: Added advice on shell expansion
This User Gave Thanks to Skrynesaver For This Post:
Hi all
i am very new to shell scripting,hope u guys can help
i need to replace,sort and append character for the file that look like this:
1007032811010001000100000001X700026930409
1007032811010001000200000002X700026930409
1007032711020001000300000003X700026930409... (2 Replies)
Hi
I have a requirement like below
I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory
My files looks like this
PGABOLTXML1D_201108121235.xml... (1 Reply)
I would like to know how to sort version numbers, using bash or perl. I would like to sort file names that are program names with version numbers and extensions, such as hello-0.2.3.tar.gz and hello-0.10.3.tar.gz.
Version numbers of computer programs do not comply with the mathematical rule... (3 Replies)
Hi. I am not sure the title gives an optimal description of what I want to do. Also, I tried to post this in the "UNIX for Dummies Questions & Answers", but it seems no-one was able to help out.
I have several text files that contain data in many columns. All the files are organized the same... (14 Replies)
Hello,
I am looking to automate a task - which is updating an existing access control instruction of a server and making sure that the attributes defined in the instruction is in sorted order. The instructions will be of a specific syntax.
For example lets assume below listed is one of an... (6 Replies)
Hi Experts,
I have a filelist collected from another server , now want to sort the output using date/time stamp filed.
- Filed 6, 7,8 are showing the date/time/stamp.
Here is the input:
#----------------------------------------------------------------------
-rw------- 1 root ... (3 Replies)
To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that needs to be really converted. Here is the extract:
ES FP,B1ES FP,70000,I,SL22,SL22 (70000)
ES... (0 Replies)
To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that needs to be really converted. Here is the extract:
ES FP,B1ES FP,70000,I,SL22,SL22 (70000)
ES... (8 Replies)
I've got a disorganized list of items and quantities for each. I've been using a combination of grep and sort to find out how much to buy of each item. I'm tired of having to constantly using these commands so I've been trying to write a shell script to make it easier, but I can't figure out how... (3 Replies)
Discussion started by: PTcharger
3 Replies
LEARN ABOUT DEBIAN
fc-match
FC-MATCH(1)FC-MATCH(1)NAME
fc-match - match available fonts
SYNOPSIS
fc-match [ -asvVh ] [ --all ] [ --sort ] [ --verbose ] [ -f format | --format format ] [ --version ] [ --help ]
[ pattern [ element ... ] ]
DESCRIPTION
fc-match matches pattern (empty pattern by default) using the normal fontconfig matching rules to find the best font available. If --sort
is given, the sorted list of best matching fonts is displayed. The --all option works like --sort except that no pruning is done on the
list of fonts.
If any elements are specified, only those are printed. Otherwise short file name, family, and style are printed, unless verbose output is
requested.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
-a --all
Displays sorted list of best matching fonts, but do not do any pruning on the list.
-s --sort
Displays sorted list of best matching fonts.
-v --verbose
Print verbose output of the whole font pattern for each match, or elements if any is provided.
-f --format format
Format output according to the format specifier format.
-V --version
Show version of the program and exit.
-h --help
Show summary of options.
pattern
Displays fonts matching pattern (uses empty pattern by default).
element
If set, the element property is displayed for matching fonts.
SEE ALSO fc-list(1)FcFontMatch(3)FcFontSort(3)FcPatternFormat(3)fc-cat(1)fc-cache(1)fc-pattern(1)fc-query(1)fc-scan(1)
The fontconfig user's guide, in HTML format: /usr/share/doc/fontconfig/fontconfig-user.html.
AUTHOR
This manual page was updated by Patrick Lam <plam@csail.mit.edu>.
16 April 2012 FC-MATCH(1)