I have a file that contains the following:
And im looking to do a line break at the end of the number before the text to make it look like this
I have been unsuccesfully searching all day, any help woudl be great
Thanks
Greetings.
I am struggling with a shell script to make my life simpler, with a number of practical ways in which it could be used. I want to take a standard text file, and pull the 'n'th word from each line such as the first word from a text file.
I'm struggling to see how each line can be... (5 Replies)
I have a File with the below contents
File1
I have no prior experience in unix. I have just started to work in unix.
My experience in unix is 0. My Total It exp is 3 yrs.
I need to replace the first word in each line with the last word for example
unix have no prior experience in... (2 Replies)
I've been trying this, and can't get it right. I want to put a line break before a word, but only if it's *not* the last word in the line. So if the break work was "fish," then...
We want to fish tomorrow
...would become...
We want to
fish tomorrow
...but this line would remain... (3 Replies)
...when the lines use both a colon and commas to separate the parts you want read as information.
The first version of this script used cut and other non-Bash-builtins, frequently, which made it nice and zippy with little more than average processor load in GNOME Terminal but, predictably, slow... (2 Replies)
I cannot seem to get this to work..
I have a file which has about 100 lines, and there is no end of line (line break \n) at the end of each line, and this is causing problem when i paste them into an application.
the file looks like this
this is a test
that is a test
balblblablblhblbha... (1 Reply)
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)
notimes=5
word=excellency
the word excellency contains 10 letters. 10 letters divided by 2 = 5. which means, 5 two-groups of letters are in the word excellency.
i need to perform a function on each group of letters. but the only thing i can think of is the following, which i just know... (5 Replies)
Hi All,
Hope you guys had a wonderful weekend
I have a scenario where in which I have to read a file line by line
and check for few words before redirecting to a file
I have searched the forum but,either those answers dint work (perhaps because of my wrong under standing of how IFS... (6 Replies)
I have a file: file.txt, which contains the following data in it.
This is a file, my name is Karl, what is this process, karl is karl junior, file is a test file, file's name is file.txt
My name is not Karl, my name is Karl Joey
What is your name?
Do you know your name and... (3 Replies)
Discussion started by: anuragpgtgerman
3 Replies
LEARN ABOUT DEBIAN
px_get_data_alpha
PX_GET_DATA_ALPHA(3) Library Functions Manual PX_GET_DATA_ALPHA(3)NAME
PX_get_data_alpha -- Get alpha data field
SYNOPSIS
#include <paradox.h>
int PX_get_data_alpha(pxdoc_t *pxdoc, char *data, int len, char **value)
DESCRIPTION
Converts a data field as it is stored in the database file into a string for the given encoding. You must set the target encoding before in
order to recode the string. If you do not set the encoding the data will be returned as is. You should use this function instead of access-
ing the data directly.
data points to the start of the data field in the record. It must be calculated by summing up all field length before the field to operate
on and add it to the base pointer of the record.
The function allocates memory for the string returned in *value. This memory has to be freed by the application.
Note:
This function is deprecated and obsolete if PX_retrieve_record(3) is used.
RETURN VALUE
Returns 0 if the field data starts with a null byte, -1 in case of an error and 1 otherwise.
SEE ALSO PX_get_data_byte(3), PX_get_data_long(3), PX_get_data_short(3), PX_get_data_double(3), PX_get_data_bcd(3), PX_get_data_blob(3)AUTHOR
This manual page was written by Uwe Steinmann uwe@steinmann.cx.
PX_GET_DATA_ALPHA(3)