Hi all,
I have a log file say Test.log that gets updated continuously and it has data in pipe separated format. A sample log file would look like:
<date1>|<data1>|<url1>|<result1>
<date2>|<data2>|<url2>|<result2>
<date3>|<data3>|<url3>|<result3>
<date4>|<data4>|<url4>|<result4>
What I... (3 Replies)
Hello,
I need a program that read a file line by line and prints out lines 1, 2 & 3 after an empty line... An example of entries in the file would be:
SRVXPAPI001 ERRO JUN24 07:28:34 1775
REASON= 0000, PROCID= #E506 #1065: TPCIPPR, INDEX= 003F
... (8 Replies)
my requirement is,
consider a file output
cat output
blah sdjfhjkd jsdfhjksdh
sdfs 23423 sdfsdf sdf"sdfsdf"sdfsdf"""""dsf
hellow there
this doesnt look good
et cetc etc
etcetera
i want to replace a line of line number 4 ("this doesnt look good") with some other line
... (3 Replies)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
I have few AIX 5.3 boxes where following is the issue.
I have a variable whose value is a very huge string ...(5000+ characters)
CMD_ARGS="/global/site/vendor/WAS/WebSphere6/AppServer/java/bin/java... (7 Replies)
Hi friends...
I am sending a file say xyz.xls to a mail through unix.
The .xls file is more than 65 thousand in size so I want to spilt the file size into 40 thousand and 25 thousand.
So can anyone provide any inputs.... (1 Reply)
CURSES_BORDER(3) BSD Library Functions Manual CURSES_BORDER(3)NAME
curses_border, border, box, wborder -- curses border drawing routines
LIBRARY
Curses Library (libcurses, -lcurses)
SYNOPSIS
#include <curses.h>
int
border(chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br);
int
box(WINDOW *win, chtype vertical, chtype horizontal);
int
wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs, chtype tl, chtype tr, chtype bl, chtype br);
DESCRIPTION
These functions draw borders around stdscr or around the specified window.
The border() function draws a border around stdscr using the characters given as arguments to the function. The ls, rs, ts and bs are the
characters used to draw the left, right, top and bottom sides, respectively. The tl, tr, bl and br are the characters used to draw the top-
left, top-right, bottom-left and bottom-right corners, respectively. If any of the characters have a text portion that is 0 then a default
alternate character set character is used for that character. Note that even though the text portion of the argument is 0, the argument can
still be used to specify the attributes for that portion of the border. The following table shows the default characters for each argument:
ls ACS_VLINE
rs ACS_VLINE
ts ACS_HLINE
bs ACS_HLINE
tl ACS_ULCORNER
tr ACS_URCORNER
bl ACS_LLCORNER
br ACS_LRCORNER
wborder() is the same as border() excepting that the border is drawn around the specified window.
The box() command draws a box around the window given in win using the vertical character for the vertical lines and the horizontal character
for the horizontal lines. The corner characters of this box will be the defaults as described for border() above. Passing characters with
text portion that is 0 to box() will result in the same defaults as those for border() as described above.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following
values:
OK The function completed successfully.
ERR An error occurred in the function.
SEE ALSO curses_attributes(3), curses_line(3)STANDARDS
The NetBSD Curses library complies with the X/Open Curses specification, part of the Single Unix Specification.
HISTORY
The Curses package appeared in 4.0BSD.
BSD August 12, 2002 BSD