Sponsored Content
Top Forums Shell Programming and Scripting Using sed to find a substring from a file Post 302709261 by bmk on Wednesday 3rd of October 2012 02:57:33 AM
Old 10-03-2012
Please let me know what is desired output you want?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed, grep, awk, regex -- extracting a matched substring from a file/string

Ok, I'm stumped and can't seem to find relevant info. (I'm not even sure, I might have asked something similar before.): I'm trying to use shell scripting/UNIX commands to extract URLs from a fairly large web page, with a view to ultimately wrapping this in PHP with exec() and including the... (2 Replies)
Discussion started by: ropers
2 Replies

2. Shell Programming and Scripting

how to find substring position in a given string

Hello, I have a string like str = "14: Jan 29 13:27:12 : Processor----: : Start of splitting file " from this, i have to find the position or location number starting for "Processor". I have to extract date from this entire string. string which i will give will not have fixed length. ... (2 Replies)
Discussion started by: balareddy
2 Replies

3. Shell Programming and Scripting

Sed extract substring on (OS X)

On OS 10.4.11 I have filenames like: 670711 SA T2 v1-1_DS_EF.doc CT_670520 AM T1 v1-2_DS_EF.doc CT_670716 - 2 SA T4 v1-2_DS_EF.doc CT_670713 SA T3 v1-1_DS_EF.doc 670421 PA DYP1 v1-1_DS_EF.doc CT_670425 PA DYP2 v1-1_DS_EF.doc CT_670107 RA T3 v1-2_DS_EF.doc CT_670521 AM T2 v1-2_DS_EF.doc... (3 Replies)
Discussion started by: mlommel
3 Replies

4. Shell Programming and Scripting

Using sed to get a substring

Hi, I have looked all over for this. I am attempting to get a the substring of a string using sed since it seemed the best solution for this. For example my string is: "zzz foo to you and bar123 or foo" I would like to extract the text between "and" and "or" (it could be anything, but... (2 Replies)
Discussion started by: CentaurAtlas
2 Replies

5. Shell Programming and Scripting

Substring using sed or awk

I am trying to get a substring from a string stored in a variable. I tried sed with a bit help from this forum, but not successful. Here is my problem. My string is: "REPLYFILE=myfile.txt" And I need: myfile.txt (everything after the = symbol). My string is: "myfile.txt.gz.20091120.enc... (5 Replies)
Discussion started by: jamjam10k
5 Replies

6. Shell Programming and Scripting

Sed and SubString

Hi Folks, I am here with a simple doubt. I am having a flat file in which I want to replace the characters from say 5 to 15 as some text. Flat file contains a single line. For example 01MRRAJESH21000RAJESH INDUSTRIES In the above line pos 16-21 is Rajesh, I want to search for the... (4 Replies)
Discussion started by: dinesh1985
4 Replies

7. Shell Programming and Scripting

Making substring with sed

Input: You can easily do this by highlighting your code. How can i get the substring from index 9 to 12 using sed? (6 Replies)
Discussion started by: cola
6 Replies

8. Shell Programming and Scripting

Substring Problem with sed . . .

Greetings. I'm looking to isolate the first occurrence of an arbitrary substring which may be present at any particular line in a given file. The enclosing end markers for the target in our thought problem are string" and ". The complete string and surrounding text could look something like... (3 Replies)
Discussion started by: LinQ
3 Replies

9. Shell Programming and Scripting

sed - replacing a substring containing a hyphen

I'm attempting to replace a substring that contains a hyphen and not having much success, can anyone point out where i'm going wrong or suggest an alternative. # echo /var/lib/libvirt/images/vm888b-clone.qcow | sed -e 's|vm888-clone|qaz|g' /var/lib/libvirt/images/vm888b-clone.qcow (1 Reply)
Discussion started by: squrcles
1 Replies

10. Shell Programming and Scripting

sed question for substring search

i have this data where i am looking for a two digit number 01,03,05 or 07. if not found i should detect that . this sed command gives me the matching rows . I want the opposite , i want the rows if the match is NOT found . also the sed command is only looking for 01, can i add 03, 05, 07 to... (7 Replies)
Discussion started by: boncuk
7 Replies
MPSNNScaleNode(3)					 MetalPerformanceShaders.framework					 MPSNNScaleNode(3)

NAME
MPSNNScaleNode SYNOPSIS
#import <MPSNNGraphNodes.h> Inherits MPSNNFilterNode. Inherited by MPSNNBilinearScaleNode, and MPSNNLanczosScaleNode. Instance Methods (nonnull instancetype) - initWithSource:outputSize: (nonnull instancetype) - initWithSource:transformProvider:outputSize: Class Methods (nonnull instancetype) + nodeWithSource:outputSize: (nonnull instancetype) + nodeWithSource:transformProvider:outputSize: Additional Inherited Members Method Documentation - (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(MTLSize) size init a node to convert a MPSImage to the desired size Parameters: sourceNode A valid MPSNNImageNode size The size of the output image {width, height, depth} - (nonnull instancetype) initWithSource: (MPSNNImageNode *__nonnull) sourceNode(__nullable id< MPSImageTransformProvider >) transformProvider(MTLSize) size init a node to convert a MPSImage to the desired size for a region of interest Parameters: sourceNode A valid MPSNNImageNode transformProvider If non-nil, a valid MPSImageTransformProvider that provides the region of interest size The size of the output image {width, height, depth} + (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) sourceNode(MTLSize) size create an autoreleased node to convert a MPSImage to the desired size Parameters: sourceNode A valid MPSNNImageNode size The size of the output image {width, height, depth} + (nonnull instancetype) nodeWithSource: (MPSNNImageNode *__nonnull) sourceNode(__nullable id< MPSImageTransformProvider >) transformProvider(MTLSize) size create an autoreleased node to convert a MPSImage to the desired size for a region of interest Parameters: sourceNode A valid MPSNNImageNode transformProvider If non-nil, a valid MPSImageTransformProvider that provides the region of interest size The size of the output image {width, height, depth} Author Generated automatically by Doxygen for MetalPerformanceShaders.framework from the source code. Version MetalPerformanceShaders-100 Thu Feb 8 2018 MPSNNScaleNode(3)
All times are GMT -4. The time now is 06:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy