09-17-2015
^M is the visible, readable representation of the <CR> (carriage return, 0X0D, \r) character and as such not recognized by sed. Your sed might accept the \r representation?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If i have a variable which is a decimal number, i.e 34.05 How can you make decimal point fall on the 15th character on the screen? Or any other that you can specify? Can you do it using sed or awk? (3 Replies)
Discussion started by: Vozx
3 Replies
2. Programming
Hi !
I'm having problem with assigning values to a multidimensional character array.
i wanted to have an array with 48 fields ,each filed being of varying size and hence have declared the array as
char struct_arr;
I am trying to assign values to the fileds as
struct_arr = token
... (1 Reply)
Discussion started by: janemary.a
1 Replies
3. Shell Programming and Scripting
Hi all,
I have a input like this
3AF9:3B01
and need to expand to the below output
3AF9
3AFA
3AFB
3AFC
3AFD
3AFE
3AFF
3B00
3B01
Please let me know the easiest way for achieving this. Thanks for the help in advance... (6 Replies)
Discussion started by: leo.maveriick
6 Replies
4. Shell Programming and Scripting
I am seeing an special character in my file
when i do the
cat filename | od-bc
I see a value of 376 for that special character.
I would like to find the decimal value for the character.
For example the decimal value for ctrl-Y is char(25).
Appreciate help on this. (11 Replies)
Discussion started by: pinnacle
11 Replies
5. UNIX for Advanced & Expert Users
HI All ,
I am using AIX version 6 . having issue with below perl code,
sub Article ($procudure, @params) {
my ($procudure, @params) = @_;
#Get handle TO Dataware House DATABASE
try {
my $dbHandle = &Cobol::DBAccess::getDBDwConnection();
,,,,,,,,,,,,,
,,,,,,,,,,,,... (3 Replies)
Discussion started by: Perlbaby
3 Replies
6. Shell Programming and Scripting
Trying to do some control flow parsing based on the index postion of an array member. Here is the pseudo code I am trying to write in (preferably in pure bash) where possible. I am thinking regex with do the trick, but need a little help.
pesudo code
if == ENDSINFIVEINTS ]]; then
do... (4 Replies)
Discussion started by: briandanielz
4 Replies
7. Programming
how to copy content of character pointer to character array in c programming..
char *num;
char name=num; (1 Reply)
Discussion started by: zinat
1 Replies
8. Programming
Hi ,
seq can be 0...128
int windex = seq / 8;
int bindex = seq % 8;
unsigned char bitvalue = '\x01' << (7-bindex) ;
bpv.bitmapvalue = bitvalue;
This is the part of a program to convert decimal to bitmap value of hexadecimal.
I want this to change to convert only to... (1 Reply)
Discussion started by: greenworld123
1 Replies
9. Shell Programming and Scripting
somedata | awk -F"#soils#" '{split($1,a,"NITNUM="); print a}'
how can i edit the content of array 2 above?
what i want to do is get rid of single quotes and double quotes. and then turn the "NewLine" into new lines.
the data in array 2 (a) is:
... (2 Replies)
Discussion started by: SkySmart
2 Replies
10. UNIX for Beginners Questions & Answers
Hi all.
I want to use sed to remove a word that ends with "!" in the first page of a file. The word I want to remove is: "DNA!".
I have search for an answer and nothing of what I found helped me.
~faizlo (2 Replies)
Discussion started by: faizlo
2 Replies
LEARN ABOUT HPUX
xmreptypegetrecord
XmRepTypeGetRecord(library call) XmRepTypeGetRecord(library call)
NAME
XmRepTypeGetRecord -- A representation type manager function that returns information about a representation type
SYNOPSIS
#include <Xm/RepType.h>
XmRepTypeEntry XmRepTypeGetRecord(
XmRepTypeId rep_type_id);
DESCRIPTION
XmRepTypeGetRecord retrieves information about a particular representation type that is registered with the representation type manager.
This routine allocates memory for the returned data. The application must free this memory using XtFree.
rep_type_id
The identification number of the representation type
The representation type entry structure contains the following information:
typedef struct
{
String rep_type_name;
String *value_names;
unsigned char *values;
unsigned char num_values;
Boolean reverse_installed;
XmRepTypeId rep_type_id;
} XmRepTypeEntryRec, *XmRepTypeEntry;
(void)
rep_type_name
The name of the representation type
value_names
An array of representation type value names
values An array of representation type numerical values
num_values
The number of values associated with the representation type
reverse_installed
A flag that indicates whether or not the reverse converter is installed
rep_type_id
The identification number of the representation type
RETURN
Returns a pointer to the representation type entry structure that describes the representation type.
RELATED
XmRepTypeGetId(3), XmRepTypeGetRegistered(3), and XmRepTypeRegister(3).
XmRepTypeGetRecord(library call)