Sponsored Content
Top Forums Shell Programming and Scripting sed problem with double point Post 302561700 by thailand on Wednesday 5th of October 2011 02:25:15 AM
Old 10-05-2011
sed problem with double point

I have a problem with the next text

00:00:27,761 --> 00:00:31,094
MADSO: Boston. Southie. I was born here.

00:00:31,197 --> 00:00:36,692
Never left. Never had any reason.
Good friends, plenty of girls.
--------------------------------------------------
I want delete MADSO: and leave all the rest.
I tried 's/[A-Z]*://' but than I have
0000:27,761 --> 00:00:31,094
Boston. Southie. I was born here.

0000:31,197 --> 00:00:36,692
Never left. Never had any reason.
Good friends, plenty of girls.
-----------------------------------------------
So sed takes the first double point away on the line with numbers and that cannot.
I tried 's/^[A-Z:\t]*//'
Than sed leaves the double point between the numbers but now
he take on every line the first letter away so than I have this:

00:00:27,761 --> 00:00:31,094
Boston. Southie. I was born here.

00:00:31,197 --> 00:00:36,692
ever left. Never had any reason.
ood friends, plenty of girls.
----------------------------------------------------
Does someone have a solution for this?
Thank you very much.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

problem with floating point numbers in awk

hi all, i have the following problem using awk in a script i want to read the values from a column with real numbers and calculate the mean.the problem is that when i use a statement such as this num = $4 i cant find a way to convert the variable from string to floating point to perform... (7 Replies)
Discussion started by: kanagias
7 Replies

2. Programming

Point and Array Convert Problem

In this statement,"A" of type "int",being converted to "pointer toarray of int".(cvtdiftypes) Please help me! #include <stdio.h> #include <stdlib.h> int m,k; const int max =20; int A; //**************************************************** // Input Matrix ... (0 Replies)
Discussion started by: zhshqzyc
0 Replies

3. Programming

floating point problem

Hi all! Hi all! I am working with a problem to find the smallest floating point number that can be represented. I am going in a loop ,stating with an initial value of 1.0 and then diving it by 10 each time thru the loop. So the first time I am getting o.1 which I wanted.But from the next... (4 Replies)
Discussion started by: vijlak
4 Replies

4. Solaris

ZFS mount point - problem

Hi, We are using ZFS to take the sanpshots in our solaris 10 servers. I have the problem when using ZFS mount options. The solaris server we are used as, SunOS emch-mp89-sunfire 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V440Sys tem = SunOS Steps: 1. I have created the zfs... (4 Replies)
Discussion started by: mgmk.84
4 Replies

5. Shell Programming and Scripting

sed to extract only floating point numbers from HTML

Hi All, I'm trying to extract some floating point numbers from within some HTML code like this: <TR><TD class='awrc'>Parse CPU to Parse Elapsd %:</TD><TD ALIGN='right' class='awrc'> 64.50</TD><TD class='awrc'>% Non-Parse CPU:</TD><TD ALIGN='right' class='awrc'> ... (2 Replies)
Discussion started by: pondlife
2 Replies

6. Shell Programming and Scripting

SED for delete the point

Hello i need to use sed for delete all row that begin with "." i try whit sed -e /^/d but it don't work help me please :) (5 Replies)
Discussion started by: tor
5 Replies

7. Shell Programming and Scripting

floating point number problem

Hello folks I Hope everyone is fine. I am calculating number of bytes calculation from apache web log. awk '{ sum += $10 } END { print sum }' /var/httpd/log/mydomain.log 7.45557e+09 it show above number, what should i do it sow number like 7455, i mean if after decimal point above 5 it... (5 Replies)
Discussion started by: learnbash
5 Replies

8. Red Hat

NFS mount point problem

Hi Forum I am trying to mount /NFS as nfs mountpoint on two servers ( A & B ). After mounting the nfs filesystem, both of them behave normally for around 10 mins and after that the NFS file handle become stale and the mountpoints dont respond. While executing df -kh, the output hang out and the... (15 Replies)
Discussion started by: rajdasuwal
15 Replies

9. Shell Programming and Scripting

problem with floating point number loops

Hey, I guess I am just to stupid and am not seeing the "wood for the trees", but I am always getting strange errors. I want to create a mesh with coordinates like: x y z 3.1 3.0 0.75 0 0 1 3.1 2.9 0.75 0 0 1 3.1 2.8 0.75 0 0 1 3.1 2.7 0.75 0 0 1 3.0 ... (10 Replies)
Discussion started by: ergy1983
10 Replies

10. Shell Programming and Scripting

Replace double double quotes using AWK/SED

Hi, I have data as "01/22/97-"aaaaaaaaaaaaaaaaa""aaa""aabbbbbbbbcccccc""zbcd""dddddddddeeeeeeeeefffffff" I want to remove only the Consequitive double quotes and not the one which occurs single. My O/P must be ... (2 Replies)
Discussion started by: Bhuvaneswari
2 Replies
FILE2SDR(1)							  ICI executables						       FILE2SDR(1)

NAME
file2sdr - SDR data ingestion test program SYNOPSIS
file2sdr configFlags fileName DESCRIPTION
file2sdr stress-tests SDR data ingestion by repeatedly writing all text lines of the file named fileName to one of a series of non-volatile linked lists created in a test SDR data store named "testsdrconfigFlags". By incorporating the data store configuration into the name (e.g., "testsdr14") we make it relatively easy to perform comparative testing on SDR data stores that are identical aside from their configuration settings. The operation of file2sdr is cyclical: a new linked list is created each time the program finishes copying the file's text lines and starts over again. If you use ^C to terminate file2sdr and then restart it, the program resumes operation at the point where it left off. After writing each line to the current linked list, file2sdr gives a semaphore to indicate that the list is now non-empty. This is mainly for the benefit of the complementary test program sdr2file(1). At the end of each cycle file2sdr appends a final EOF line to the current linked list, containing the text "*** End of the file ***", and prints a brief performance report: Processing I<lineCount> lines per second. EXIT STATUS
0 file2sdr has terminated. FILES
No configuration files are needed. ENVIRONMENT
No environment variables apply. DIAGNOSTICS
Diagnostic messages produced by file2sdr are written to the ION log file ion.log. Can't use sdr. ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun. Can't create semaphore. ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun. SDR transaction failed. ION system error. Check for earlier diagnostic messages describing the cause of the error; correct problem and rerun. Can't open input file Operating system error. Check errtext, correct problem, and rerun. Can't reopen input file Operating system error. Check errtext, correct problem, and rerun. Can't read from input file Operating system error. Check errtext, correct problem, and rerun. BUGS
Report bugs to <ion-bugs@korgano.eecs.ohiou.edu> SEE ALSO
sdr2file(1), sdr(3) perl v5.14.2 2012-05-25 FILE2SDR(1)
All times are GMT -4. The time now is 04:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy