10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Here is a file contents :
declare -Ax NEW_FORCE_IGNORE_ARRAY=(="§" ="§" ="§" ="§" ="§" .................. ="§"Here is a pattern
=I want to extract 'NEW_FORCE_IGNORE_ARRAY' which is the whole word before the first occurrence of pattern '='
Is there a better solution than mine :... (3 Replies)
Discussion started by: jcdole
2. Shell Programming and Scripting
2014-05-31-184.108.40.2060158-240 E11115478A502 LEVEL: Info
PID : 25100668 TID : 73282 PROC : db2sysc 0
INSTANCE: udbin001 NODE : 000 DB :
APPHDL : 0-18345 APPID: *LOCAL.udbin001.140531200018
AUTHID : udbin001
EDUID : 73282 ... (4 Replies)
Discussion started by: ilugopal
3. Shell Programming and Scripting
I have hundreds of files to process. In each file
I need to look for a pattern then
extract value(s) from next line and then
search for value(s) selected from point (2) in the same file at a specific position.
HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V
TITLE CYTOCHROME... (7 Replies)
Discussion started by: AshwaniSharma09
4. Shell Programming and Scripting
I am trying to extract the numbers from the strings.
Lakers win 80% of the games
24 numbered Kobe scores 90% from free throw line
Chances of Lakers winning championship is 100%
I have data like this. and am looking to extract the %
100% (6 Replies)
Discussion started by: grajp002
5. Shell Programming and Scripting
I need to count the number of occurrences of a pattern, say 'key', between each occurrence of a different pattern, say 'lu'.
Here's a portion of the text I'm trying to parse:
lu S1234L_149_m1_vg.6, part-att 1, vdp-att 1 p-reserver IID 0xdb
key 4156 4353 0000 0000
... (3 Replies)
Discussion started by: slipstream
6. Shell Programming and Scripting
This is my first post, please be nice. I have tried to google and read different tutorials.
The task at hand is:
Input file input.txt (example)
From this file the task is to grep the -E- and -W- strings that are unique and write a new file... (5 Replies)
Discussion started by: TestTomas
7. Shell Programming and Scripting
I have a pattern like :
Here I need to extract system name and the timestamp and also the numeric number after "-S" i.e 7 here .
I am not very sure of whether I should use sed / awk for this ?:confused:
Priya. (6 Replies)
Discussion started by: priyam
8. Shell Programming and Scripting
I've written a script to count the total size of SAN storage LUNs, and also display the LUN sizes.
From server to server, the LUNs sizes differ.
What I want to do is count the occurances as they occur and change.
These are the LUN sizes:
49.95... (2 Replies)
Discussion started by: cyber111
9. UNIX for Dummies Questions & Answers
can anyone help me out in extracting the pattern from a file...
The Input file is:
NFS B.11.11 ONC/NFS; Network-FileSystem,InformationServices,Utilities|123
NParProvider B.11.11.01.04.01.01 nPartition Provider|456
NPartition A.01.02 Enhanced NPartition Commands/789... (6 Replies)
Discussion started by: aajan
10. Shell Programming and Scripting
I am trying to extract "securitySettings" out of line:
<a ref ="http://localhost:5654/securitySettings">
using sed as follows:
name = `grep "localhost" file.html | sed -n 's/.**\/\(.*)/\">/\1/p'`
But it didn't run, seems have some syntax error. Do anybody knows why?
Thank you very... (11 Replies)
Discussion started by: zhen