11-21-2005
Use VI
Backup your file first. Then from terminal, vi the file
vi /users/yourid/novel.txt
Then type the following
:%s/[.!?]\_s\+\a/\U&\E/g
Hit enter
That should work for you. Then type :wq and press enter. Your file is edited and saved.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
To anyone that has the answer:
What does UNIX have that Mac OSX doesn't. I am a programmer, and I am wondering if I could just get Mac OSX for my programming needs instead of UNIX. But my major question is what does UNIX have that Mac OSX doesn't. Thank you if you have the answer, and are willing... (2 Replies)
Discussion started by: REM
2 Replies
2. UNIX Desktop Questions & Answers
I finally broke down and decided to buy a new piece of hardware. I think I made the right decision when I chose an Apple iBook - OSX is incredible! I haven't used a Mac since System7.5, and 10.2 is just blowing me away!
Best of all, it's easy to use for people who are not used to Mac, but if I... (5 Replies)
Discussion started by: LivinFree
5 Replies
3. Shell Programming and Scripting
How would I go about taking a string, such as a name (first last) and changing the capitalization of the first letter of each name (First Last)?
A script that I am using outputs a list of names in all lower case, and I need to process the whole list to a new outfile giving the new... (2 Replies)
Discussion started by: TheCrunge
2 Replies
4. Programming
Hi all, I have a query about multithreading. What I would like to do is, at the start of my main update() function, start a couple of threads in parallel, once they are all complete carry on with my main update function.
void update() {
thread1->update(); // fluid solver
... (3 Replies)
Discussion started by: memoid
3 Replies
5. OS X (Apple)
Hi forum,
I'm administrating a workstation/server for my lab and I was wondering how to optimize OSX. I was wondering what unnecessary background tasks I could kick off the system so I free up as much memory and cpu power.
Other optimization tips are also welcome (HD parameters, memory... (2 Replies)
Discussion started by: deiphon
2 Replies
6. OS X (Apple)
I've been using "sudo" inside Terminal. I just upgraded to 10.6.6 and now "sudo" gives me incorrect password errors.
My user is an admin user, so i can install etc on GUI but unable to do anything in terminal.
1. I did a repair permissions and restarted but cannot sudo.
2. i had an... (0 Replies)
Discussion started by: sentinel
0 Replies
7. Shell Programming and Scripting
Hi!
I'm looking for a simple script, especially a one liner script in tcsh or bash
that will emulate the find/replace in all text apps.
I want to change all uppercase caracters to Title word (in wich only the first caracter is UpperCase and the rest is lowercase)
I can use sed command, but... (2 Replies)
Discussion started by: sstpierre68
2 Replies
8. OS X (Apple)
Hi Guys
What do i need to change so that anyone can rsh into the machine, i am sure it is in the pam.d/rshd buti am hving and issue wiith it,
at the moment only someone who has a pysical account on the machine can rsh in
even with all the users in the passwd file it does not work
... (2 Replies)
Discussion started by: ab52
2 Replies
9. OS X (Apple)
Our Network Security folks have mandated that we "Kerberize" our systems to allow them to perform an authenticated scan. This consists of instructions to change /etc/pam.d/sshd from:
# sshd: auth account password session
auth optional pam_krb5.so use_kcminit
auth optional ... (0 Replies)
Discussion started by: jnojr
0 Replies
10. OS X (Apple)
hi all,
first off thesis my first post so if i am not in the right forum, i apologize.
i'm an absolute newbie to unix. i've been reading my books and studying my crib sheets etc. but... :/
i want to accomplish two things.
1. search and remove duplicate files i.e.. audio, doc alias etc.... (1 Reply)
Discussion started by: monkeyhateclean
1 Replies
LEARN ABOUT MOJAVE
mpsimagedescriptor
MPSImageDescriptor(3) MetalPerformanceShaders.framework MPSImageDescriptor(3)
NAME
MPSImageDescriptor
SYNOPSIS
#import <MPSImage.h>
Inherits NSObject.
Class Methods
(__nonnull instancetype) + imageDescriptorWithChannelFormat:width:height:featureChannels:
(__nonnull instancetype) + imageDescriptorWithChannelFormat:width:height:featureChannels:numberOfImages:usage:
Properties
NSUInteger width
NSUInteger height
NSUInteger featureChannels
NSUInteger numberOfImages
MTLPixelFormat pixelFormat
MPSImageFeatureChannelFormat channelFormat
MTLCPUCacheMode cpuCacheMode
MTLStorageMode storageMode
MTLTextureUsage usage
Detailed Description
MPSImage.h MPSCore.framework
Copyright:
Copyright (c) 2015-2017 Apple Inc. All rights reserved. A MPSImage is a MTLTexture abstraction that allows for more than 4 channels,
and for temporary images.
This depends on Metal.framework A MPSImageDescriptor object describes a attributes of MPSImage and is used to create one (see MPSImage
discussion below)
Method Documentation
+ (__nonnull instancetype) imageDescriptorWithChannelFormat: (MPSImageFeatureChannelFormat) channelFormat(NSUInteger) width(NSUInteger)
height(NSUInteger) featureChannels
Create a MPSImageDescriptor for a single read/write cnn image.
+ (__nonnull instancetype) imageDescriptorWithChannelFormat: (MPSImageFeatureChannelFormat) channelFormat(NSUInteger) width(NSUInteger)
height(NSUInteger) featureChannels(NSUInteger) numberOfImages(MTLTextureUsage) usage
Create a MPSImageDescriptor for a read/write cnn image with option to set usage and batch size (numberOfImages).
Property Documentation
- channelFormat [read], [write], [nonatomic], [assign]
The storage format to use for each channel in the image.
- cpuCacheMode [read], [write], [nonatomic], [assign]
Options to specify CPU cache mode of texture resource. Default = MTLCPUCacheModeDefaultCache
- featureChannels [read], [write], [nonatomic], [assign]
The number of feature channels per pixel. Default = 1.
- height [read], [write], [nonatomic], [assign]
The height of the CNN image. The formal height of the CNN image in pixels. Default = 1.
- numberOfImages [read], [write], [nonatomic], [assign]
The number of images for batch processing. Default = 1.
- pixelFormat [read], [nonatomic], [assign]
The MTLPixelFormat expected for the underlying texture.
- storageMode [read], [write], [nonatomic], [assign]
To specify storage mode of texture resource. Storage mode options:
Default = MTLStorageModeShared on iOS
MTLStorageModeManaged on Mac OSX
MTLStorageModeShared not supported on Mac OSX.
See Metal headers for synchronization requirements when using StorageModeManaged
- usage [read], [write], [nonatomic], [assign]
Description of texture usage. Default = MTLTextureUsageShaderRead/Write
- width [read], [write], [nonatomic], [assign]
The width of the CNN image. The formal width of the CNN image in pixels. Default = 1.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSImageDescriptor(3)