8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there, I'm camor and I'm trying to process huge files with bash scripting and awk.
I've got a dataset folder with 10 files (16 millions of row each one - 600MB), and I've got a sorted file with all keys inside.
For example:
a sample_1 200
a.b sample_2 10
a sample_3 10
a sample_1 10
a... (4 Replies)
Discussion started by: camor
4 Replies
2. Solaris
So, the obvious problem is paging to disk and the resulting impact on performance. What other concerns would you worry about? (1 Reply)
Discussion started by: DustinT
1 Replies
3. Shell Programming and Scripting
I have a large zone file dump that consists of
; DNS record for the adomain.com domain
data1
data2
data3
data4
data5
CRLF
CRLF
CRLF
; DNS record for the anotherdomain.com domain
data1
data2
data3
data4
data5
data6
CRLF (7 Replies)
Discussion started by: Bluemerlin
7 Replies
4. Shell Programming and Scripting
Hello, I know how to join multiple files using the cat function. I want to do something a little more advanced. Basically I want to put the filename in the first column...
One thing to note is that the file is tab delimited.
e.g.
file1.txt
joe 1 4 5 6 7 3
manny 2 3 4 5 6 7
... (4 Replies)
Discussion started by: phil_heath
4 Replies
5. Shell Programming and Scripting
Hi,
I have a requirement to search for a string in a large log file along with few lines before and after the the string. The following script was sufficient to search such an entry.
STRING_TO_GREP="$1"
FILE_TO_GREP="$2"
NUMBER_OF_LINES_BEFORE=$3
NUMBER_OF_LINES_AFTER=$4
for i in `grep... (3 Replies)
Discussion started by: praveen123
3 Replies
6. Shell Programming and Scripting
How to redirect the output to multiple files without putting on console
I tried tee but it writes to STDOUT , which I do not want.
Test.sh
------------------
#!/bin/ksh
echo "Hello " tee -a file1 file2
----------------------------
$>./Test.sh
$>
Expected output:
-------------------... (2 Replies)
Discussion started by: prashant43
2 Replies
7. Shell Programming and Scripting
Hi,
I want to make sed write a part of fileA (first 7 lines) to file1 and the rest of fileA to file2 in a single call and single line in sed. If I do the following:
sed '1,7w file1; 8,$w file2' fileA
I get only one file named file1 plus all the characters following file1. If I try to use curly... (1 Reply)
Discussion started by: varelg
1 Replies
8. UNIX for Dummies Questions & Answers
I have a file with a simple list of ids. 750,000 rows. I have to break it down into multiple 50,000 row files to submit in a batch process.. Is there an easy script I could write to accomplish this task? (2 Replies)
Discussion started by: rtroscianecki
2 Replies
RSTART(1) General Commands Manual RSTART(1)
NAME
rstart - a sample implementation of a Remote Start client
SYNOPSIS
rstart [-c context] [-g] [-l username] [-v] hostname command args ...
DESCRIPTION
Rstart is a simple implementation of a Remote Start client as defined in "A Flexible Remote Execution Protocol Based on rsh". It uses rsh
as its underlying remote execution mechanism.
OPTIONS
-c context
This option specifies the context in which the command is to be run. A context specifies a general environment the program is to
be run in. The details of this environment are host-specific; the intent is that the client need not know how the environment must
be configured. If omitted, the context defaults to X. This should be suitable for running X programs from the host's "usual" X
installation.
-g Interprets command as a generic command, as discussed in the protocol document. This is intended to allow common applications to
be invoked without knowing what they are called on the remote system. Currently, the only generic commands defined are Terminal,
LoadMonitor, ListContexts, and ListGenericCommands.
-l username
This option is passed to the underlying rsh; it requests that the command be run as the specified user.
-v This option requests that rstart be verbose in its operation. Without this option, rstart discards output from the remote's rstart
helper, and directs the rstart helper to detach the program from the rsh connection used to start it. With this option, responses
from the helper are displayed and the resulting program is not detached from the connection.
NOTES
This is a trivial implementation. Far more sophisticated implementations are possible and should be developed.
Error handling is nonexistent. Without -v, error reports from the remote are discarded silently. With -v, error reports are displayed.
The $DISPLAY environment variable is passed. If it starts with a colon, the local hostname is prepended. The local domain name should be
appended to unqualified host names, but isn't.
The $SESSION_MANAGER environment variable should be passed, but isn't.
X11 authority information is passed for the current display.
ICE authority information should be passed, but isn't. It isn't completely clear how rstart should select what ICE authority information
to pass.
Even without -v, the sample rstart helper will leave a shell waiting for the program to complete. This causes no real harm and consumes
relatively few resources, but if it is undesirable it can be avoided by explicitly specifying the "exec" command to the shell, eg
rstart somehost exec xterm
This is obviously dependent on the command interpreter being used on the remote system; the example given will work for the Bourne and C
shells.
SEE ALSO
rstartd(1), rsh(1), A Flexible Remote Execution Protocol Based on rsh
AUTHOR
Jordan Brown, Quarterdeck Office Systems
X Version 11 rstart 1.0.4 RSTART(1)