Sponsored Content
Full Discussion: regex to find font class
Top Forums Shell Programming and Scripting regex to find font class Post 302480749 by tlarkin on Wednesday 15th of December 2010 05:16:08 PM
Old 12-15-2010
Quote:
Originally Posted by verdepollo
Unfortunately I don't have a Mac OS at hand, but what "ton of stuff" is it finding?
Looks like anything involved with fonts in every directory. Here is just a snip of the output:

Code:
bash-3.2$ find -x -E /* -iname "*arial*" -type f -print
/Applications/Microsoft Office 2004/Office/Fonts/Arial
/Applications/Microsoft Office 2004/Office/Fonts/Arial Black
/Applications/Microsoft Office 2004/Office/Fonts/Arial Narrow
/Applications/Microsoft Office 2004/Office/Fonts/Arial Rounded Bold
find: /Library/Application Support/Apple/ParentalControls/Users: Permission denied
find: /Library/Application Support/Apple/Remote Desktop/Client: Permission denied
find: /Library/Application Support/Apple/Remote Desktop/Task Server: Permission denied
find: /Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/.Spotlight-V100: Permission denied
find: /Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Application Support/Apple/ParentalControls/Users: Permission denied
find: /Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Application Support/Apple/Remote Desktop/Client: Permission denied
find: /Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Application Support/JAMF/Downloads: Permission denied
find: /Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Application Support/JAMF/Usage: Permission denied
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Black.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Bold Italic.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Bold.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Italic.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Narrow Bold Italic.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Narrow Bold.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Narrow Italic.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Narrow.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Rounded Bold.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial Unicode.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/Arial.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/ArialHB.ttf
/Library/Application Support/JAMF/Composer/Sources/netboot/ROOT/Library/Fonts/ArialHBBold.ttf
^Z
[19]+  Stopped                 find -x -E /* -iname "*arial*" -type f -print
bash-3.2$

Like look at the parental controls....not sure why it is picking that up.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Find with RegEx

I have some files in unix ls -1 TMH.backend.tar.421E-03.Z TMH.backend.tar.421E-04.Z TMH.backend.tar.421E-05.Z TMH.backend.tar.421E-06.Z TMH.backend.tar.421E-07.Z TMH.backend.tar.421E-08.Z TMH.backend.tar.421E-08.Z.bak20081223164844 TMH.backend.tar.421E-09.Z... (1 Reply)
Discussion started by: on9west
1 Replies

2. Shell Programming and Scripting

Using grep and regular expression to find class references in a c++ file

I'm trying to math all class references in a C++ file using grep with regular expression. I'm trying to know if a specific include is usuless or not, so I have to know if there is a refence in cpp. I wrote this RE that searches for a reference from class ABCZ, but unfortunately it isn't working... (0 Replies)
Discussion started by: passerby
0 Replies

3. Linux

Command to find default font name in Ubuntu OS

Hi, Does anyone know whether there is any console command available to get the info of the default Ubuntu OS or any config file where in I search for the font details? I am using Ubuntu 8.04 and 10.04 (LTS) both together. Thanks (1 Reply)
Discussion started by: royalibrahim
1 Replies

4. UNIX for Dummies Questions & Answers

GREP Find & Replace <p class>

I am making an eBook. I am editing the html in BBedit. I need to replace all <p class="s5"> with just a <p>. How do I write this for GREP? Thank you, Abby (5 Replies)
Discussion started by: cuddlykitty
5 Replies

5. UNIX for Advanced & Expert Users

Get pointer for existing device class (struct class) in Linux kernel module

Hi all! I am trying to register a device in an existing device class, but I am having trouble getting the pointer to an existing class. I can create a class in a module, get the pointer to it and then use it to register the device with: *cl = class_create(THIS_MODULE, className);... (0 Replies)
Discussion started by: hdaniel@ualg.pt
0 Replies

6. Shell Programming and Scripting

Perl::Gtk2 on Linux --- How to Find the Default Font Being Used?

Hello All, Wasn't sure if this was the correct thread to post this under but figured it has to do with Perl and Gtk2 so why not... Anyway.. How can I find out what the Default font being used is inside a Gtk2::Widget. In this case I'm trying to figure out the font being used inside a... (1 Reply)
Discussion started by: mrm5102
1 Replies

7. UNIX for Advanced & Expert Users

Could not find the main class: Grasp. Program will exit.

I am having trouble running jgrasp. I get the message above when I try to run jgrasp. I am running fedora if that makes a difference. I have already set my environmental variable with this. Hopefully I did it right. JGRASP_HOME=/opt/jgrasp export... (0 Replies)
Discussion started by: cokedude
0 Replies

8. Programming

Size of Derived class, upon virtual base class inheritance

I have the two class definition as follows. class A { public: int a; }; class B : virtual public A{ }; The size of class A is shown as 4, and size of class B is shown as 16. Why is this effect ?. (2 Replies)
Discussion started by: techmonk
2 Replies

9. Programming

C++ : Base class member function not accessible from derived class

Hello All, I am a learner in C++. I was testing my inheritance knowledge with following piece of code. #include <iostream> using namespace std; class base { public : void display() { cout << "In base display()" << endl; } void display(int k) {... (2 Replies)
Discussion started by: anand.shah
2 Replies

10. Shell Programming and Scripting

Regex issue with \s in character class.

Anybody have an explanation for why \s doesn't match ' ' in a character class? Here are 3 examples with the final example showing that \s in a character class (demonstrated by using egrep -o) fails: \s works outside of class.. # echo " FOO " | egrep -o '\s+\s' FOO Here is a... (6 Replies)
Discussion started by: blackrageous
6 Replies
stl_key(5)							File Formats Manual							stl_key(5)

Name
       stl_key - setld kit manufacturing key file

Description
       The manufacturing key files are used by the software kitting program in producing software distribution packages in format.

       A  key file has a global data section and a subset descriptor section. The sections are separated by a line that is empty except for the %%
       character sequence.

       The global section contains the product level attributes of the product. Comments are permitted in this section. They begin with the number
       sign  (#)  character and end at the next newline character.  Attributes are specified by giving the attribute key, an equal sign (=), and a
       value for the attribute.  There must be no white space surrounding the equals sign (=). There are five attributes that must be present with
       non-null values. These are NAME, CODE, VERS, MI, and ROOT.  An explanation of each of the attributes follows:

	  NAME	    The name of the product. The value for NAME is a string of up to 40 characters.

	  CODE	    The 3-character product code for the product, for example, ULT.

	  VERS	    The 3-digit version code for the product, for example, 040.

	  MI	    The pathname of the master inventory file for the product.

	  ROOT	    A  flag with values of 0 or 1. It is used to determine if a ROOT image checksum should be computed for the product image file.
		    There is no ROOT image in any product other than ULTRIX. Set it to 0.

	  RXMAKE    A flag with values of 0 or 1. Setting it to 0 suppresses the manufacture of subset images for distribution on RX50	diskettes.
		    Omitting this attribute from the key file will cause the program to assume a default value of 1. Digital recommends setting it
		    to 0.

	  COMPRESS  A flag with values of 0 or 1. Setting it to 1 causes the subset images to be compressed  using  the  utility,  thereby  saving
		    space  on the distribution media. Setting it to 0 suppresses compression. Omitting this attribute from the key file will cause
		    the program to assign a default value of 0.

       The subset descriptor section contains one subset descriptor for each subset in the product. There is one subset  descriptor  per  line	in
       this section and comments are not permitted.

       A  subset  descriptor  contains subset-specific attributes in four fields separated by TAB (CTRL/I) characters. A description of each field
       follows:

	  SUBSET    This field contains the name of the subset being described by the descriptor. The subset name is composed of the product code,
		    name and version code.

	  DEPENDENCIES
		    A list of subsets on which the described subset depends. If there are no such subsets, the period character (.) is used.  Mul-
		    tiple subset dependencies are separated by a vertical bar character (|).

	  FLAGS     A subset flags value. This is an integer. Bit 0 is used to mark the subset as irremovable. If bit 0 is set, can  never  delete
		    the  subset. Bit 1 is used to mark the subset as optional, otherwise it is mandatory and must be installed from the media when
		    encountered by

	  DESCRIPTION
		    This is a description of the subset in 40 or fewer characters.  It is used in the menu that presents to a user installing  the
		    software. If spaces are desired in this field, the field must be enclosed in single quotes.

       The subset descriptors must be listed in the order in which the subsets are installed by

Restrictions
       The required attributes and default values are not optimal.

       Comments in the subset descriptor section will cause serious problems when encountered by the program.

       TAB formatting in the subset descriptors is tightly enforced by the program.

Examples
       This is an example key file:
	   #	 ULW400.k -
	   #	      ULTRIX WS V4.0 Server 2/2 (VAX) Mfg Key File
	   #
	   #	 "@(#)ULW400.k	2.2 (ULTRIX) 4/12/89"
	   #
	   #	 000  02-mar-1989    ccb
	   #	 Copy from V2.0 (VAX) Sources
	   #	 Revision update for V4.0

	   #% PRODUCT-LEVEL ATTRIBUTES
	   NAME='ULTRIX Worksystem Software V4.0'
	   CODE=UWS
	   VERS=400
	   MI=ULT400.mi
	   ROOT=0
	   RXMAKE=0
	   COMPRESS=1

	   #% SUBSET-LEVEL ATTRIBUTES
	   %%
	   UWSX11400  ULTINET400     0	  'X11/DECwindows User Environment'
	   UWSFONT400 UWSX11400 0    'X11/DECwindows 75dpi Fonts'
	   UWSFONT15400    .	2    'X11/DECwindows 100dpi Fonts'
	   UWSDECW400 .    2	'Optional DECwindows Applications'
	   UWSXDEV400 ULTPGMR400     2	  'Worksystems Development Software'
	   UWSMAN400  ULTDCMT400     2	  'UWS Manual Pages'

See Also
       kits(1), stl_comp(5), stl_ctrl(5), stl_image(5), setld(8)
       Guide to Preparing Software for Distribution on ULTRIX Systems

																	stl_key(5)
All times are GMT -4. The time now is 08:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy