08-13-2018
So every extra CR/LF is at position 30?
Is that what you are looking for some kind of process to strip out - only those at position 30?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear all,
Please advise what approach can remove all line break from a text file?
e.g.
Source file:
A
B
C
Target file:
A, B, C
Thanks,
Rock (5 Replies)
Discussion started by: Rock
5 Replies
2. Shell Programming and Scripting
I've got a file that would have lines similar to:
12345678 x.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00
23456781 x.00 xx.00 xx.00 xx.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00
34567812 x.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00
45678123 x.00 xx.00 xx.00 xx.00 xx.00 x.00 xxx.00 xx.00 xx.00 xx.00 xx.00... (10 Replies)
Discussion started by: Cailet
10 Replies
3. Shell Programming and Scripting
Hi Experts,
My requirement is to read the csv file and need to remove if any line break in it.
sample data:
Row1: "Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91
Row2:"Tønsberg, Brygga Kino SF",Tønsberg,202-1,
Tønsberg SF 4,202-1-4
Expected data:
Row1: "Oslo, Symra... (6 Replies)
Discussion started by: cnraja
6 Replies
4. Shell Programming and Scripting
My requirement is to read the csv file and need to remove if any line break in it.
sample data:
Row1: "Oslo, Symra kino",Oslo,130-7,Symra 1,130-7-91Row2:"Tønsberg, Brygga Kino SF",Tønsberg,202-1.Tønsberg SF 4,202-1-4
Expected data:
Row1: "Oslo, Symra kino",Oslo,130-7,Symra... (4 Replies)
Discussion started by: cnraja
4 Replies
5. Shell Programming and Scripting
Hi,
we are trying to process a csv file,in which we are getting data with line breaks.How to remove the line break character in the file?
when i try to print the line break charcter using od -c,it gives as '\n' character for both line break and line feed.
Please provide your valuable... (6 Replies)
Discussion started by: cnraja
6 Replies
6. Shell Programming and Scripting
Hi Gurus
I am new to this forum.. I am using HP Unix OS.
I have one single string in input file as shown below
Abc123 | cde | fgh | ghik| lmno | Abc456 |one |two |three | four | Abc789 | five | Six | seven | eight | Abc098 | ........
I want to achive the result in a output file as shown... (3 Replies)
Discussion started by: kannansr621
3 Replies
7. UNIX for Dummies Questions & Answers
I'm trying to make a script that says
echo This is the date:
I did this
echo This is the date:
date
and it worked. But I need them both on the same line. And putting date on the echo line doesn't work. Is there a way to do so? (1 Reply)
Discussion started by: bbowers
1 Replies
8. Shell Programming and Scripting
I have a file with 100 lines. On 50 th line , from position 5 to rest of the data , I need to change the occurrence of A to B and Occurrence of M to N.
Input file :
Line1
Line2
Line3
--
--
12345ABCDEFM
---
--
Line 100
Output
Line1
Line2 (40 Replies)
Discussion started by: Rajesh_us
40 Replies
9. Shell Programming and Scripting
I will appreciate if you help me here in this script in Solaris Enviroment.
Scenario:
i have 2 files :
1) /tmp/TRANSACTIONS_DAILY_20180730.txt:
201807300000000004
201807300000000005
201807300000000006
201807300000000007
201807300000000008
2)... (10 Replies)
Discussion started by: teokon90
10 Replies
LEARN ABOUT DEBIAN
gii_pmove_event
gii_pmove_event(3) GGI gii_pmove_event(3)
NAME
gii_pmove_event - LibGII pointer movement events
SYNOPSIS
#include <ggi/events.h>
typedef struct gii_pmove_event {
COMMON_DATA;
int32_t x, y; /* absolute/relative position */
int32_t z, wheel;
} gii_pmove_event;
DESCRIPTION
The gii_pmove_event structure is used to report change of pointer position. Depending on the event type, the values are either absolute or
relative.
GENERATED EVENTS
This structure is used for evPtrRelative and evPtrAbsolute events.
STRUCTURE MEMBERS
The gii_pmove_event structure describes pointer (mice, etc.) motion in terms of the x, y, z coordinates and the wheel values of the device.
The motion described may be relative (offset from the current location) or absolute (a specific location on the 'screen'), depending on
whether the event is of type evPtrRelative or evPtrAbsolute, respectively.
LibGII does not attempt to interpolate or keep track of the current pointer position. (This is the application's responsibility.) LibGII
may also report both relative and absolute pointer motion for the same input, which may happen when the mouse is being emulated using a
keyboard on an input/target that is normally reports absolute motion.
EXAMPLES
Input handling for applications expecting absolute pointer position:
{
static int mousex,mousey;
ggiEventPoll(vis, emKey|emPointer, NULL);
events = ggiEventsQueued(vis, emKey|emPointer);
while (events--) {
ggiEventRead(vis, &event, emKey|emPointer);
switch(event.any.type) {
case evPtrButtonPress:
switch(event.pbutton.button) {
case GII_PBUTTON_FIRST:
do_something_as_appropriate(mousex,mousey);
break;
case GII_PBUTTON_SECOND:
/* ... */
}
break;
case evPtrButtonRelease:
/* ... if needed ... */
break;
case evPtrAbsolute:
mousex = event.pmove.x;
mousey = event.pmove.y;
break;
case evPtrRelative:
mousex += event.pmove.x;
mousey += event.pmove.y;
break;
}
/* Constrain mouse in any case */
if (mousex < 0) mousex = 0;
if (mousey < 0) mousey = 0;
if (mousex > xmax) mousex = xmax;
if (mousey > ymax) mousey = ymax;
} /* while */
}
SEE ALSO
gii_event(3)
libgii-1.0.x 2006-12-30 gii_pmove_event(3)