07-07-2017
I had a misconception in my post - of course insert.sh's stdin receives data, and its stdout is redirected to the temp file. Sorry!
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How to edit large file using vi where you can't increase /usr/var/tmp anymore? (3 Replies)
Discussion started by: nazri
3 Replies
2. UNIX for Dummies Questions & Answers
Here's what I have...
$ vi foo1
- open foo1 and work around for a while. I yank a few lines into a buffer and then :w to save.
Next I :e foo2 to open foo2 and paste my buffer. I :w to save, but I would like to then be able to go directly back into foo1 where I was before I opened foo2. ... (4 Replies)
Discussion started by: djschmitt
4 Replies
3. Gentoo
i had heard that linux is open source.....which meant that i could edit it.
so how do i start out? i've already downloaded it. the name's "puppy linux".....someone please reply quick!!!
and by the way, may i know what shell scripting is? (15 Replies)
Discussion started by: Dragster93
15 Replies
4. UNIX for Dummies Questions & Answers
Hi, I am trying to edit sshd_config file through the vi editor.
logged on as a root.
when I try to write the file I get:
Read-only file, not written; use ! to override
when i type :w!, I get:
Error: etc/ssh/sshd_config Permission denied.
I want to change:
#PermitRootLogin no to yes
freeBDS... (6 Replies)
Discussion started by: emosms
6 Replies
5. Shell Programming and Scripting
Hello Everyone,
I have a few files in a directory such as :
abc.xyz.txt1.gz
abc.xyz.txt2.gz
....
....
...
...
abd.xyz.txt100.gz
And I want uncompressed files such as:
abc.xyz.txt1
abc.xyz.txt2
....
...
.....
.... (1 Reply)
Discussion started by: ad23
1 Replies
6. Shell Programming and Scripting
Hi ALL,
Am working with the gunzip command to zip all the old files having 10 days
am using the command
find . -name '*.log' -type f -mtime +10 -exec gunzip {} \;
am facing two issues
1.)it displays the files which are all older than a year
2.)when am trying to gunzip all the... (2 Replies)
Discussion started by: thelakbe
2 Replies
7. UNIX for Dummies Questions & Answers
Hi, sometimes one wants to edit files while still seeing output of earlier commands in terminal. I've found out that cat test && cat - >> test does the trick for displaying file content and adding lines but I believe I saw a much cooler command that was also able to erase lines from files. I cannot... (6 Replies)
Discussion started by: scarleo
6 Replies
8. Shell Programming and Scripting
I have compressed files under directory '/root/data' and i need the uncompressed files in another directory
'/root/uncom'. I running a shell script below shell script from directory '/root/'
gunzip /root/data/*.gz -d /root/uncom
But this is failing with
gunzip: /root/uncom is a directory... (2 Replies)
Discussion started by: vel4ever
2 Replies
9. Shell Programming and Scripting
Hi all,
I have a directory with multiple (thousnads) of files, which are named this way
ABCDEF.wo.im-1
OKRAME.ire.roi
IOJEAFO01.irt.gfg
IMNYBL05.REG.gkf
I would like to keep the part of the name (everything before the first dot in the filename).
The desired output:
ABCDEF... (3 Replies)
Discussion started by: Error404
3 Replies
10. Shell Programming and Scripting
I have compressed files under directory '/root/data' and i need the uncompressed files in another directory
'/root/uncom'. I running a shell script below shell script from directory '/root/'
gunzip /root/data/*.gz -d /root/uncom
But this is failing with :
gunzip: /root/uncom is a directory... (2 Replies)
Discussion started by: hoyanet
2 Replies
uncat(1) General Commands Manual uncat(1)
NAME
uncat - continuously reads stdin, splits up the data either by timeout or number of bytes read to process it
SYNOPSIS
uncat [-vo] [-t seconds] [-s size] prog
DESCRIPTION
uncat continuously reads stdin and repeatedly processes the data either after seconds timeout or maximal number of bytes size read. To
process the data, uncat starts prog and feeds the data into prog's standard input. prog's standard output is redirected to standard error.
uncat never writes to standard output.
prog consist of one or more arguments.
If prog exits non-zero, uncat prints an error message, discards the data and continues to read stdin.
Note that uncat is not crash proof.
uncat is used to run the socklog-notify service.
OPTIONS
-v verbose. Print verbose messages to stderr.
-o once. Exit on end of input. Normally uncat continues waiting for data on standard input, even on end of file.
-t seconds
timeout. Set the timeout to seconds seconds. Default is 300.
-s size
Set the maximal number of bytes to size. Default is 1024.
SIGNALS
If uncat receives a TERM signal, it starts to process the data in memory and exits as soon as possible.
uncat also does this on end of input if the -o option was given.
EXIT CODES
uncat returns 0 after receiving a TERM signal. uncat returns 111 on error.
SEE ALSO
socklog(8), socklog-conf(8), sv(8), runsv(8), svlogd(8), tryto(1)
http://smarden.org/socklog/
http://smarden.org/runit/
AUTHOR
Gerrit Pape <pape@smarden.org>
uncat(1)