I have a shell script that runs all the time looking for a certain type of file and then it processes the file through a series of other scripts. The script is watching a directory that has files uploaded to it via SFTP. It already checks the size of the file to make sure that it is not still... (3 Replies)
I need to read contents of directory and create a list of data files that match a certain pattern and process by renaming it and calling a existing .ksh script then archiving off to file another directory. Any suggestions or samples u could point me to on using .ksh perl or other to process... (5 Replies)
Using If_ELSE, how do check a particular piece of data in a file. My data file has three columns and say I want to check the data in the 2nd column. I want to do a comparsion against a another piece of data using IF_ELSE. How do I get that data in file to check? (1 Reply)
Hi Guys,
Please help me with my problem here:
I have a source file:
1212 23232 343434 ASAS1 4
3212 23232 343434 ASAS2 4
3234 23232 343434 QWQW1 4
1134 23232 343434 QWQW2 4
3212 23232 343434 QWQW3 4
and a mapping... (4 Replies)
I have to write a program to read data from files and then format into another file. However, I face a strange problem related to control character that I can't understand and solve.
The source file is compose of many lines with such format:
T_NAME|P_NAME|P_CODE|DOCUMENT_PATH|REG_DATE
... (3 Replies)
Hello,
I extracted a list of files in a directory with the command ls . However this is not my computer, so the ls functionality has been revamped so that it gives the filesizes in front like this :
This is the output of ls command : I stored the output in a file filelist
1.1M... (5 Replies)
Hy!
I need to post-process some data files which have variable (and periodic) number of fields. For example, I need to square (data -> data*data) the folowing data file: -5.34281E-28 -3.69822E-29 8.19128E-29 9.55444E-29 8.16494E-29 6.23125E-29
4.42106E-29 2.94592E-29 1.84841E-29 ... (5 Replies)
I had a requirement to check if data exists after headers (typically row 2 & so on) in csv file.
please help how we can check through shellscript in linux.
Thank you !! (1 Reply)
HI Guys,
I have some 8 files with different name and extensions. I need to check if they are present in a specific folder or not and also want that script to show me which all are not present. I can write if condition for each file but from a developer perspective , i feel that is not a good... (3 Replies)
/tmp/man18809436: Invalid file system control data detected
Help me
what do I do?
Если знаете русскии, пишите на нем. (2 Replies)
Discussion started by: islily
2 Replies
LEARN ABOUT PLAN9
stream
STREAM(3) Library Functions Manual STREAM(3)NAME
stream - a structure for communications
SYNOPSIS
bind streamdevice dir
dir/data
dir/ctl
DESCRIPTION
A stream is not a device per se. However, many devices use the streams package in the kernel to implement communications channels. The
properties described here are common to all such channels.
All streams are represented by two standard files, ctl and data, plus any others the particular device wants to add. Reading and writing
the data file receives and sends data on the channel. If the channel is message oriented, each write will represent a message and each
read will return at most one message. If the buffer given in a read is smaller than the message, subsequent reads will return the remain-
der of the message.
Writing textual command strings to the ctl file performs control operations on the stream. The strings need not be null-terminated. Each
device may add to the control operations. The common control operations are:
hangup Hang up this stream. Any subsequent writes will return an error. The first subsequent read will return 0. All following
ones will return an error.
push name Push the module name onto the top of the stream.
pop Pop the top module off the stream
Reading the ctl file returns a textual identifier for the stream. This is used by multiplexed devices and its use is described with the
particular device.
SEE ALSO pipe(3), dk(3), cons(3), async(3), fcall(3), ip(3), reboot(3)SOURCE
/sys/src/9/port/st*.c
STREAM(3)