Sponsored Content
Full Discussion: How to rm files - Mac OS?
Top Forums UNIX for Dummies Questions & Answers How to rm files - Mac OS? Post 302899933 by Don Cragun on Friday 2nd of May 2014 01:24:36 PM
Old 05-02-2014
What does the command:
Code:
printf "%s\n" *Restored*

print? Are there any single-quotes, double-quotes, spaces, or tabs in the output? (If there are, your pipeline won't work.)

Either of the following should work:
Code:
find . -name '*Restored*' -exec rm {} +
find . -name '*Restored*' -exec rm {} \;

with the 1st one running faster if there is more than one file found to be removed.
 

6 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Transfer Files from old Mac to a Linux box?

The other half has informed me that I gotta get my own Internet box (been using her's for over ten years) and my ancient Mac SE30 (when's the last time you heard about one of those) has a bunch of Excel and Word files that I want to move to the next machine. I know that I can spend significant... (3 Replies)
Discussion started by: wsimpso1
3 Replies

2. Windows & DOS: Issues & Discussions

Mac.. PC.. how do I share files with each other on the same router???

OKay so.. I have a mac at web design company office, and a PC at home.. I want to be able to send the Mac files.. We are using the same modem that's hooked up through out a router!! How would I do this.. I'm new to this part so talk to me like I'm 2!!! thanks.. (2 Replies)
Discussion started by: pattersonz
2 Replies

3. Shell Programming and Scripting

Toggle Hidden Files Mac OS X

Hi all, I have been using Ubuntu for 2 years now, and a few days ago I bought a Macbook. This is my first time using a Mac, so I have spent the better of two days learning the user interface, and configuring my Macbook. One thing I noticed is that there is no easy way to turn on and off hidden... (0 Replies)
Discussion started by: Omniwheel
0 Replies

4. Shell Programming and Scripting

script to compare two files of mac address

Hi I need to write a bash shell script. I have two separate text files. One file contains a list of MAC addresses taken from a network scan, the other contains a list of MAC addresses for our currently-managed devices. How can I compare these two files, and output a list of addresses that have... (6 Replies)
Discussion started by: borderblaster
6 Replies

5. OS X (Apple)

installing binary files on the mac

Hi I am mainly using unix to run programs. My current problem is that I have a hard time installing programs (binary format) on my mac. I tried install and make but it does not work.. perhaps someone can help me out. thanks (2 Replies)
Discussion started by: phil_heath
2 Replies

6. UNIX for Dummies Questions & Answers

move sco openserver files to mac

What do I need to be able to move files (bsh scripts) from sco 5.0.7. to the unix side of mac 10.6.4? I tried moving them via a usb floppy drive but I get an error the disk is not readable. Would macports or fink help or should I simply load sco in parallels or is there another possible solution?... (1 Reply)
Discussion started by: powwm
1 Replies
Locale::Codes::LangExt(3pm)				 Perl Programmers Reference Guide			       Locale::Codes::LangExt(3pm)

NAME
Locale::Codes::LangExt - standard codes for language extension identification SYNOPSIS
use Locale::Codes::LangExt; $lext = code2langext('acm'); # $lext gets 'Mesopotamian Arabic' $code = langext2code('Mesopotamian Arabic'); # $code gets 'acm' @codes = all_langext_codes(); @names = all_langext_names(); DESCRIPTION
The "Locale::Codes::LangExt" module provides access to standard codes used for identifying language extensions, such as those as defined in the IANA language registry. Most of the routines take an optional additional argument which specifies the code set to use. If not specified, the default IANA language registry codes will be used. SUPPORTED CODE SETS
There are several different code sets you can use for identifying language extensions. A code set may be specified using either a name, or a constant that is automatically exported by this module. For example, the two are equivalent: $lext = code2langext('acm','alpha'); $lext = code2langext('acm',LOCALE_LANGEXT_ALPHA); The codesets currently supported are: alpha This is the set of three-letter (lowercase) codes from the IANA language registry, such as 'acm' for Mesopotamian Arabic. This is the default code set. ROUTINES
code2langext ( CODE [,CODESET] ) langext2code ( NAME [,CODESET] ) langext_code2code ( CODE ,CODESET ,CODESET2 ) all_langext_codes ( [CODESET] ) all_langext_names ( [CODESET] ) Locale::Codes::LangExt::rename_langext ( CODE ,NEW_NAME [,CODESET] ) Locale::Codes::LangExt::add_langext ( CODE ,NAME [,CODESET] ) Locale::Codes::LangExt::delete_langext ( CODE [,CODESET] ) Locale::Codes::LangExt::add_langext_alias ( NAME ,NEW_NAME ) Locale::Codes::LangExt::delete_langext_alias ( NAME ) Locale::Codes::LangExt::rename_langext_code ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangExt::add_langext_code_alias ( CODE ,NEW_CODE [,CODESET] ) Locale::Codes::LangExt::delete_langext_code_alias ( CODE [,CODESET] ) These routines are all documented in the Locale::Codes::API man page. SEE ALSO
Locale::Codes The Locale-Codes distribution. Locale::Codes::API The list of functions supported by this module. http://www.iana.org/assignments/language-subtag-registry The IANA language subtag registry. AUTHOR
See Locale::Codes for full author history. Currently maintained by Sullivan Beck (sbeck@cpan.org). COPYRIGHT
Copyright (c) 2011-2013 Sullivan Beck This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.18.2 2013-11-04 Locale::Codes::LangExt(3pm)
All times are GMT -4. The time now is 01:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy