06-01-2011
How to eliminate ^L
Hi,
I am trying to create a text file from data retrieved from a query.The data retrieved is having this character '^L' at regular intervals of the data.
How can i eliminate this, Please find below the sample data.
I tried sed -e "s/\^L//g" to convert it, but with no luck
^LCODE*SERIAL
^L341*37616
-
-
-
^L225*4103
Please help
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have the calculations which return me infinity (inf), -inf, other very larger number when I printed them out.
I did try to insert some control condition not to print these out if the above condition is met. The code I implemented is something like:-
for (i=0;i<=1000;i++){
... (3 Replies)
Discussion started by: ahjiefreak
3 Replies
2. UNIX for Dummies Questions & Answers
I have a file abc:
line 1
line 2
line 3
line 4
And I am successfully e-mailing the file, with this:
mail -s "contents of abc" jdoe@email.com <<EOF
cat abc
EOF
But the e-mail shows up looking like this:
subject: contents of abc
line 1 line 2 line 3 line 4
The carriage returns... (5 Replies)
Discussion started by: tumblez
5 Replies
3. Shell Programming and Scripting
Hi,
I am stuck on writing a script that reads a file, retains wanted data but discards unwanted data from a CSV file.
This is a sample of my table {not the actual data)
ID Color tel_num Name color2 color3
abcdef green 5551212 jj88 red blue
acbdfe yellow... (5 Replies)
Discussion started by: t524ube
5 Replies
4. Shell Programming and Scripting
Hi,
Im finding some files form a specific path and den writing those files to another file as:
find /SYS/admin/data/xml -name '*.xml' -type f ! -newer file1 -print >>out.xml
and when im doing cat out.xml im getting like dis:
... (2 Replies)
Discussion started by: ss_ss
2 Replies
5. Shell Programming and Scripting
Hi
I would like to replace one of our script, and add some pre-checking for the input file before running the command, but I bumped into the following issue:
Original command: use < input.txt
I cannot modify the original command, but I created the useit script which would be called as... (2 Replies)
Discussion started by: apapp
2 Replies
6. Programming
what are the precautions to be taken care for avoiding zombie process ? (8 Replies)
Discussion started by: Gopi Krishna P
8 Replies
7. Shell Programming and Scripting
Could any one help me to compare the date value say at 10th column with sysdate (i.e current date) and if diffrence is more than 50 days then filter them out from the file. The file contain 10000 records.
head file
00971502657744 A671FAHP2EW8BG1369172011HRWS contact information ... (6 Replies)
Discussion started by: zooby
6 Replies
8. UNIX for Dummies Questions & Answers
hey guys. what command in vi editor should I write to make
this
M83RDK-078A -1 1 1024 1 1024 OK X |
M83RDK-055 -1 1 627 1 627 OK X |
become like this
M83RDK-078A 1 1024
M83RDK-055 1... (5 Replies)
Discussion started by: muhnandap
5 Replies
9. Shell Programming and Scripting
Hi All,
I have two files in the directory
file1.txt
file2.txt
I gave ls -m > output.txt command and I got the output as
file1.txt, file2.txt, output.txt
But my output should be like
file1.txt, file2.txt
Thanks in advance. (6 Replies)
Discussion started by: dubuku_01
6 Replies
10. Shell Programming and Scripting
Hi All,
Please help me how to remove the records from the file if it is having more number of fields than the required one, before loading into stage
Here is the sample records. File is space delimited one
chandu 1121324 CC ( 2 spaces)
chandu balu 434657 DD (3 spaces) -- failing due to... (10 Replies)
Discussion started by: bbc17484
10 Replies
LEARN ABOUT HPUX
csa_x_process_updates
csa_x_process_updates(library call) csa_x_process_updates(library call)
NAME
csa_x_process_updates -- invoke a calendar application's calendar event handler
SYNOPSIS
#include <csa/csa.h>
void csa_x_process_updates(
CSA_session_handle cal);
DESCRIPTION
The csa_x_process_updates function checks to see if there have been calendar updates that are of interest to the client. If there have
been one or more calendar updates, and the client previously registered a callback handler using csa_register_callback(3) for updates of
this type, the callback function is called by csa_x_process_updates.
The cal argument specifies a calendar session handle. The callback function will be invoked only if there have been updates to this calen-
dar. If cal is set to NULL, the callback function will be invoked if there have been updates to any logged on calendars.
RETURN VALUE
The csa_x_process_updates function returns no value.
APPLICATION USAGE
The csa_x_process_updates function is useful for applications that maintain a dynamic representation of calendar information, such as a GUI
calendar display. Because the calendar server can simultaneously maintain multiple read/write connections for the same calendar, any data
retrieved by a client should be considered immediately out of date. To create the appearance of a dynamic display of calendar data, such
an application should call csa_x_process_updates as frequently as necessary from within its main event loop.
One way to do this is to have a timeout handler call csa_x_process_updates at regular intervals. The duration of the timer should be
appropriate for the expected user environment. This does not eliminate the risk of the client holding outdated information; it merely
gives the application control over how old the information can get.
SEE ALSO
csa/csa.h - csacsa(5), csa_register_callback(3).
csa_x_process_updates(library call)