Hi all,
I want to sort a file based on the number in the 9th column
I've tried both of the following commands
sort -k 9,9n file_to_sort.dat
sort +8 -n file_to_sort.dat
both resulting in the same output which does sort col 9 nummerically
but it doesn't output the lines in the original... (2 Replies)
I am converting mainframes JCL to be used in shell on a one to one basis... when i use the sort command unix does ascii sort as a result which numbers are first followed by charecters in the Ascending sort ... but themainframes uses the EBCDIC as result gives the charecters followed by numbers in... (5 Replies)
I need to sort the particular column only in reverse order how i can give it..
if i give the -r option the whole file is getting sorted in reverse order.
1st 2nd col 3rd
C col 4th col 5th col
-------------------------------------------
C... (7 Replies)
Hi forum.
I'm hoping someone can help me out with this problem. I tried to search online but couldn't come up with an exact solution.
I have the following data file:
H|20-May-2011|MF_FF.dat|77164|731374590.96|1|1|731374590.96|76586|77164|578|2988|Y... (8 Replies)
Hi
I am using this
cat substitutionFeats.txt | gawk '{$0=gensub(/\t/,"blabla",1);print}' | gawk '{print length, $0}' | sort -n | sort -r
and the "sort -n" command doesn't work as expected: it leads to a wrong ordering:
64 Adjustable cuffs
64 Abrasion-
64 Abrasion pas
647 Sanitized 647... (4 Replies)
Hi friends,
I am using below script to gzip files after naming them in a particular order.
but I intend to name them in numerical order as per their timings(earlier updated fle with a smaller numeric extension than later updated),but this script is not working as planned.
please help with... (7 Replies)
Hello all
I was wondering if someone has an idea how to sort by a specific order, let's say by a specific alphabet containing only 4 letters like (d,s,a,p) instead of (a,b,c....z) ??
Cheers! (6 Replies)
Discussion started by: cabrao
6 Replies
LEARN ABOUT MOJAVE
mpsimagelaplacian
MPSImageLaplacian(3) MetalPerformanceShaders.framework MPSImageLaplacian(3)NAME
MPSImageLaplacian
SYNOPSIS
#import <MPSImageConvolution.h>
Inherits MPSUnaryImageKernel.
Properties
float bias
Additional Inherited Members
Detailed Description
The MPSImageLaplacian is an optimized variant of the MPSImageConvolution filter provided primarily for ease of use. This filter uses an
optimized convolution filter with a 3 x 3 kernel with the following weights: [ 0 1 0 1 -4 1 0 1 0 ]
The optimized convolution filter used by MPSImageLaplacian can also be used by creating a MPSImageConvolution object with kernelWidth = 3,
kernelHeight = 3 and weights as specified above.
Property Documentation
- bias [read], [write], [nonatomic], [assign]
The bias is a value to be added to convolved pixel before it is converted back to the storage format. It can be used to convert negative
values into a representable range for a unsigned MTLPixelFormat. For example, many edge detection filters produce results in the range
[-k,k]. By scaling the filter weights by 0.5/k and adding 0.5, the results will be in range [0,1] suitable for use with unorm formats. It
can be used in combination with renormalization of the filter weights to do video ranging as part of the convolution effect. It can also
just be used to increase the brightness of the image.
Default value is 0.0f.
Author
Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code.
Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSImageLaplacian(3)