Hi
This works almost as I wish, but not exatly:
for i in `cat names.log`; do grep $i combined2.log | awk '{print $8}' | grep $i | sort -u | head -8 ;done
This works with 8 lines for each pattern in names.log file. But i need to read number of lines from second file, say count.log. I've... (3 Replies)
I have hundreds of small files in csv format. I want to read them one at a time, insert the data into a table and then delete it.
data1 to data999.txt files needs to be read and data to be added to a table.
mysql -e"LOAD DATA INFILE 'data1.txt' INTO TABLE my_table;"
if echo $? = 0 then rm... (1 Reply)
hello there
the problem i got: i need to list .rrd files in each sub-directory from the parent directory, then create .xml files for each rrd files, the xml file should be in the same subdirectoryas rrd file.
i have tried
ls |awk '{print... (3 Replies)
Hi All,
I would like to read the contents of two files using a loop but it doesn't seem to be working. Please have a look at the following script and help me resolve the problem.
While read Rec, Rec1
do
echo $Rec
echo $Rec1
---
----
---
done < file1, file2
I also tried this
... (8 Replies)
Here my problem.
As a root i created a file, and added the content to the file. Now i want to make this file as read only file for all the user including root. Some how i need to protect this file from all users.I tried using the sticky bit. It works for directories. Do any one have idea how to... (8 Replies)
Hi the following c-code utilizing the 'read()' man 2 read method cant read in files larger that 2gig.
Hi I've found a strange problem on ubuntu64bit, that limits the data you are allowed to allocate on a 64bit platform using the c function 'read()'
The following program wont allow to allocate... (14 Replies)
Hi. I have a cron job running nmon -X & collecting info into the files nmon.$month$date. Files owned by root ( as the job owner ) . What is the best way to make them automatically readable for everyone. The files stored in the folder
bash-3.2$ ls -ld /system_performance/nmon_logs
drwxrwxrwx 2... (2 Replies)
Hi
i am looking a way to look at a log file(log.txt) from the last time I've read it.
However after some days the main log file(log.txt) is rename to (log.txt.1).
So now i will have two log files as below.
log.txt.1
log.txt
Now, i have to read the log from the point where i have left... (3 Replies)
I am trying to read two files in a while loop. It never runs, any thoughts would be most appreciated.
cat /tmp/trueclients.lst | while read CLIENT
cat /tmp/dates.lst | while read DATES
while read CLIENT
do while read DATES
do /usr/openv/netbackup/bin/admincmd/bpimagelist -L... (2 Replies)
HI,
I am trying to implement a simple shell script program that does not make use of ls or find commands as they are quite expensive on very large sets of files. So, I am trying to generate the file list myself. What I am trying to do is this:
1. Generate a file name using shell script, for... (2 Replies)
Discussion started by: shoaibjameel123
2 Replies
LEARN ABOUT OPENSOLARIS
wscrl
scrl(3XCURSES) X/Open Curses Library Functions scrl(3XCURSES)NAME
scrl, scroll, wscrl - scroll a window
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int scrl(int n);
int scroll(WINDOW *win);
int wscrl(WINDOW *win, int n);
PARAMETERS
n number and direction of lines to scroll
win pointer to the window in which to scroll
DESCRIPTION
The scroll() function scrolls the window win up one line. The current cursor position is not changed.
The scrl() and wscrl() functions scroll the window stdscr or win up or down n lines, where n is a positive (scroll up) or negative (scroll
down) integer.
The scrollok(3XCURSES) function must be enabled for these functions to work.
RETURN VALUES
On success, these functions return OK. Otherwise, they return ERR.
ERRORS
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO clearok(3XCURSES), libcurses(3XCURSES), attributes(5), standards(5)SunOS 5.11 5 Jun 2002 scrl(3XCURSES)