I need a better way to read the first character of each line in a file and check if it equals the special character ¤. This character tells me where there is a break in the reports. The file has over 500,000 lines. Currently, this is my code -
if ]
I am using Korn Shell as a scripting... (7 Replies)
Can someone help me to write a script / command to read in a file, character by character, replace any unknown ASCII characters with space. then write out the file to a new filename/
Thanks! (1 Reply)
Hello All,
We are getting files from sftp server through file transmission protocol & after transmission we are removing all the control M
(^M) characters from them.we are expecting various kind of special characters in the files.
we are tried removing '^M' characters through 'dos2unix' command... (2 Replies)
Hi,
How read character by character from a file .
and i need replace '.' with null if it comes as a 5 character
i am beginner ...please help me (1 Reply)
hello all
i request you to give the solution for the following problem..
I want read the text file.and print the contents character by character..like if the text file contains google means..i want to print
g
go
goo
goog
googl
google
like this Using unix Shell scripting...
without using... (1 Reply)
Hello,
The last character is a comma ,
I have tried the following:
sed -e 's/\,$//' filename-to-read
however - there are still commas at the end of each line...:confused: (5 Replies)
Hi,
Maybe this iscorrect forum for my question...
I should read one character at a fixed position from each line of the file. So how ??? should be substituted in the code below:
while read line ; do
single_char=`???`
echo "$single_char"
done < $input_file
OK...I did get an... (0 Replies)
performing this code to read from file and print each character in separate line
works well with ASCII encoded text
void
preprocess_file (FILE *fp)
{
int cc;
for (;;)
{ cc = getc (fp);
if (cc == EOF)
break;
printf ("%c\n", cc);
}
}
int
main(int... (1 Reply)
Discussion started by: khaled79
1 Replies
LEARN ABOUT OSF1
xmtextfieldsethighlight
XmTextFieldSetHighlight(3X)XmTextFieldSetHighlight(3X)NAME
XmTextFieldSetHighlight - A TextField function that highlights text
SYNOPSIS
#include <Xm/TextF.h>
void XmTextFieldSetHighlight (widget, left, right, mode)
Widget widget;
XmTextPosition left;
XmTextPosition right;
XmHighlightMode mode;
DESCRIPTION
XmTextFieldSetHighlight highlights text between the two specified character positions. The mode parameter determines the type of high-
lighting. Highlighting text merely changes the visual appearance of the text; it does not set the selection. Specifies the TextField wid-
get ID Specifies the position of the left boundary of text to be highlighted. This is an integer number of characters from the beginning of
the text buffer. The first character position is 0. Specifies the position of the right boundary of text to be highlighted. This is an
integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the type of highlighting
to be done. A value of XmHIGHLIGHT_NORMAL removes highlighting. A value of XmHIGHLIGHT_SELECTED highlights the test using reverse video.
A value of XmHIGHLIGHT_SECONDARY_SELECTED highlights the text using underlining.
For a complete definition of TextField and its associated resources, see XmTextField(3X).
SEE ALSO XmTextField(3X)XmTextFieldSetHighlight(3X)