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
ppmtosixel(1)						      General Commands Manual						     ppmtosixel(1)

NAME
ppmtosixel - convert a portable pixmap into DEC sixel format SYNOPSIS
ppmtosixel [-raw] [-margin] [ppmfile] DESCRIPTION
Reads a portable pixmap as input. Produces sixel commands (SIX) as output. The output is formatted for color printing, e.g. for a DEC LJ250 color inkjet printer. If RGB values from the PPM file do not have maxval=100, the RGB values are rescaled. A printer control header and a color assignment table begin the SIX file. Image data is written in a compressed format by default. A printer control footer ends the image file. OPTIONS
-raw If specified, each pixel will be explicitly described in the image file. If -raw is not specified, output will default to com- pressed format in which identical adjacent pixels are replaced by "repeat pixel" commands. A raw file is often an order of magni- tude larger than a compressed file and prints much slower. -margin If -margin is not specified, the image will be start at the left margin (of the window, paper, or whatever). If -margin is speci- fied, a 1.5 inch left margin will offset the image. PRINTING
Generally, sixel files must reach the printer unfiltered. Use the lpr -x option or cat filename > /dev/tty0?. BUGS
Upon rescaling, truncation of the least significant bits of RGB values may result in poor color conversion. If the original PPM maxval was greater than 100, rescaling also reduces the image depth. While the actual RGB values from the ppm file are more or less retained, the color palette of the LJ250 may not match the colors on your screen. This seems to be a printer limitation. SEE ALSO
ppm(5) AUTHOR
Copyright (C) 1991 by Rick Vinci. 26 April 1991 ppmtosixel(1)
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy