Sponsored Content
Full Discussion: sed data extract
Top Forums Shell Programming and Scripting sed data extract Post 302729697 by hoo on Sunday 11th of November 2012 12:00:38 AM
Old 11-11-2012
Great, thank you Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed or awk to extract data from Xml file

Hi, I want to get data from Xml file by using sed or awk command. I want to get the following result : mon titre 1;Createur1;Dossier1 mon titre 1;Createur1;Dossier1 and save it in cvs file (fichier.cvs). FROM this Xml file (test.xml): <playlist version="1"> <trackList> <track>... (1 Reply)
Discussion started by: yeclota
1 Replies

2. Shell Programming and Scripting

extract data from a data matrix with filter criteria

Here is what old matrix look like, IDs X1 X2 Y1 Y2 10914061 -0.364613333 -0.362922333 0.001691 -0.450094667 10855062 0.845956333 0.860396667 0.014440333 1.483899333... (7 Replies)
Discussion started by: ssshen
7 Replies

3. Shell Programming and Scripting

how to extract the data ?

Hi, I'm trying to pick out a data field eg. from below. I need the required field as below but they are filled sometimes with weird chars like \-(. or watever. How can I accurately extract the 3rd field in shell? :confused: ID IDNO - REQUIRED FIELD ID 1447 - MAT620BR. ID 1452 -... (13 Replies)
Discussion started by: uxnoob
13 Replies

4. Shell Programming and Scripting

Extract data based on match against one column data from a long list data

My input file: data_5 Ali 422 2.00E-45 102/253 140/253 24 data_3 Abu 202 60.00E-45 12/23 140/23 28 data_1 Ahmad 256 7.00E-45 120/235 140/235 22 data_4 Aman 365 8.00E-45 15/65 140/65 20 data_10 Jones 869 9.00E-45 65/253 140/253 18... (12 Replies)
Discussion started by: patrick87
12 Replies

5. Shell Programming and Scripting

Extract specific data content from a long list of data

My input: Data name: ABC001 Data length: 1000 Detail info Data Direction Start_time End_time Length 1 forward 10 100 90 1 forward 15 200 185 2 reverse 50 500 450 Data name: XFG110 Data length: 100 Detail info Data Direction Start_time End_time Length 1 forward 50 100 50 ... (11 Replies)
Discussion started by: patrick87
11 Replies

6. Shell Programming and Scripting

SED to extract HTML text data, not quite right!

I am attempting to extract weather data from the following website, but for the Victoria area only: Text Forecasts - Environment Canada I use this: sed -n "/Greater Victoria./,/Fraser Valley./p" But that phrasing does not sometimes get it all and think perhaps the website has more... (2 Replies)
Discussion started by: lagagnon
2 Replies

7. Shell Programming and Scripting

Extract data b/w two words using sed

Hi, I want to extract data b/w two words with the help of sed.. Eg: In "Anna said that she would fetch the bucket", I want to display data b/w "Anna" and "would" O/P: said that she I have tried with below code, but unable to get desired o/p echo "Anna said that she would fetch the... (5 Replies)
Discussion started by: divya bandipotu
5 Replies

8. Shell Programming and Scripting

Router ping log extract data from it Awk/Sed/grep

Hi, I am new to this world.. Using expect i loging to router and checking ping response to my links. I need to genarate report using this output and that report contains only three file link name, packet loss, latency. my output of script is like below: -bash-3.00$ monmw/mwbkp... (2 Replies)
Discussion started by: jkmistry
2 Replies

9. Shell Programming and Scripting

sed or awk, cut, to extract specific data from line

Hi guys, I have been trying to do this, but... no luck so maybe you can help me. I have a line like this: Total Handled, Received, on queue Input Mgs: 140 / 14 => 0 I need to, get the number after the / until the =, to get only 14 . Any help is greatly appreciated. Thanks, (4 Replies)
Discussion started by: ocramas
4 Replies

10. Shell Programming and Scripting

Extract header data from one file and combine it with data from another file

Hi, Great minds, I have some files, in fact header files, of CTD profiler, I tried a lot C programming, could not get output as I was expected, because my programming skills are very poor, finally, joined unix forum with the hope that, I may get what I want, from you people, Here I have attached... (17 Replies)
Discussion started by: nex_asp
17 Replies
PHEAR(6)							   Games Manual 							  PHEAR(6)

NAME
phear - enter the cavez of phear SYNOPSIS
phear [-e <level filename>] | [level name] OPTIONS
This program has several arguments: -e Start editor instead of game on a specific level. level name Name of the level to play, f.ex 01 level filename Filename of the level to edit. f.ex /usr/share/phear/data/levels/01 DESCRIPTION
This is a boulder dash type of game, for terminals. You walk around in a ASCII underground cave system, where you need to keep clear of boulders falling down while you are digging through the dirt searching for diamonds. To play you have to know these keys: right - move right left - move left up - move up down - move down b - place bomb t - detonate bombs q - leave game By picking up a diamond (*) you get 10 points, picking up money ($) gives you 100 points. You get one extra life for every 1000 points you score. Move around with the arrow keys or the 2-4-8-6 keys. Press 'k' to commit suicide if you should get stuck. Got the bombs (%)? Great! Press 'b' to place them, and 't' to detonate them all at once. Note that the bombs you place will act just like stones, affected by gravity, rolling, and so on.. Watch out for monsters (M) -- if they catch you, you will die. To fight back, drop stones on them or blow them up using your bombs. Pressing 's' will enable/disable sound, 'w' will highlight your current position. EDITOR
The editor has its own keys you need to know: 0-9 - Keys 0-9 places objects s - Saves the map l - Enables lock-mode (lets you draw continuously using the arrow-keys) q - Quits the editor AUTHOR
Cavez of Phear was written by Tom Rune Flo <tom@x86.no>. This manual page was written by Hakon Nessjoen <haakon.nessjoen@gmail.com>, with parts of it written by Tom Rune Flo <tom@x86.no>, for the Debian project (and may be used by others). November 30, 2011 PHEAR(6)
All times are GMT -4. The time now is 01:54 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy