01-11-2008
K Shell split variable name
Hi,
The default value for split vaiable is space or tab or Shell.
Please let me know what is the name of the variable and how to change the default to some other string for spliting.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
To anyone who can help greetings,
I am a beginner at Unix shell scripting and am taking a class.
The assignment question is as follows:
use a command-line tool named "itstat" which will display the resolution of an image file and some other lines of information. It accepts a list of image... (1 Reply)
Discussion started by: tech2040
1 Replies
2. Shell Programming and Scripting
To anyone who can help greetings,
I am a beginner at Unix shell scripting.
I need to know how to use the command line tool "itstat".
I understand it's application, however I cannot find any additional information.
Any assistance will be greatly appreciated. (3 Replies)
Discussion started by: tech2040
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all!
I'm a newbie to shell scripting.
I want to create a script that will store a line from a text file in a variable so I can then use it to open firefox with that text in the address bar (the text file contains a list of addresses).
I have tried the following:
#!/bin/sh
a='sed -n 2p... (2 Replies)
Discussion started by: jazzman
2 Replies
4. Shell Programming and Scripting
HI all,
I am attempting to use the scp statemet in a shell script that I am writing
I need to have the user of the script enter a password at the time of the shell script running.I have the following questions?
1) how do i disable the automatic text echo when the user is entering the... (1 Reply)
Discussion started by: Segwar
1 Replies
5. UNIX for Dummies Questions & Answers
Testing for the presence/absence of a pattern in a file, using /bin/sh:
while read a;
do
b="${a##*pattern*}";
;
done < file
This returns 0 if there's a match. That signal ($?) can then be used outside the loop.
However this method reads through the whole file, even if the match... (2 Replies)
Discussion started by: uiop44
2 Replies
6. Shell Programming and Scripting
Hello,
I have a scenario for which I am trying to write a shell script and I have a question regarding the same. Here's the situation:
I am trying to copy a directory which consists of a few sub-directories and .c and .dat extension files say n number of times so that the copied file have... (3 Replies)
Discussion started by: corntown118
3 Replies
7. Shell Programming and Scripting
Hi,
I need to write a script that runs a series of commands in multiple subfolders. The problem is that I dont want to change directory for every folder. So this is why I thought to use a master script to activate the smaller ones.
So, is there a way to command other scripts to open in... (9 Replies)
Discussion started by: Fuyudo
9 Replies
8. Shell Programming and Scripting
Hi guys,
I am wanting to create a script that will logon to HackThisSite.org and complete Programming Mission 11. You can find a link to this mission here for your reference:
www hackthissite org/missions/prog/11/
The following is what I have so far:
#!/bin/bash
USER="myUsername"... (0 Replies)
Discussion started by: spooke
0 Replies
9. Shell Programming and Scripting
hey i have to connect to sql through shell script , then store the value of the query in a variable and then compare it after some time after running a process.
i have used this code but it is not working.
#!/bin/sh
Val = (sqlplus -s rte/rted2@rel76d2 <<!
SELECT MAX(STAT_ID) FROM CVT_STATS;... (3 Replies)
Discussion started by: ramsavi
3 Replies
10. Shell Programming and Scripting
I tried to run a command which simply generates SSH key with out prompting password.
After several trails , got the below command to run the script :
ssh-keygen -t rsa -N "" -f id_rsa
-N "" tells it to use an empty passphrase (the same as two of the enters in an interactive script)
-f... (0 Replies)
Discussion started by: ulaxmi
0 Replies
LEARN ABOUT OSX
splitmail
splitmail(1) General Commands Manual splitmail(1)
NAME
splitmail - Split a large mail message into MIME-compliant partial messages
SYNOPSIS
splitmail [-d] [-v] [-s splitsize] [-p prefix] [-i id-suffix] [file-name]
DESCRIPTION
The splitmail program will take an email message and break it up into smaller pieces using the "message/partial" type defined by MIME, the
proposed Internet standard for multimedia mail formats.
By default it will take the message either from standard input or the named file, and will produce a set of partial message files with
names like "/tmp/split.1" for the first part, and so on. The prefix "/tmp/split." can be overridden using the "-p" option.
If the -d option is specified, the mail will actually be delivered. If -v is specified, the verbose flag will be passed to sendmail.
The -i option can be used to make splitmail generate the pieces with similar (but not identical) message-id fields, in a format which
allows them to be easily correlated with one another and which end with the suffix provided on the command line after -i.
The default chunk size for spliting messages is 250000 at most sites, though this is also a compile-time option. This can be overriden
with the -s switch, or with the environment variable SPLITSIZE.
Messages smaller than the chunk size will not be turned into partial messages, but will be written to a single file or delivered as a sin-
gle message.
ENVIRONMENT
SPLITSIZE overrides the default chunk size. Setting SPLITSIZE to, say, 4000000 will effectively ensure that your messages are unlikely
ever to be split, but it may cause them to be rejected by some mail transport software.
SEE ALSO
mailto(1), metamail(1)
BUGS
If the size of the input is just on the fencepost, and if it is coming from a file rather than standard input, splitmail will sometimes
estimate the number of parts wrong and will have to write out an extra part. This is harmless but annoying. It is especially annoying if
the estimate was 2 but the real number was 1.
COPYRIGHT
Copyright (c) 1992 Bell Communications Research, Inc. (Bellcore)
Permission to use, copy, modify, and distribute this material for any purpose and without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies, and that the name of Bellcore not be used in advertising or publicity
pertaining to this material without the specific, prior written permission of an authorized representative of Bellcore. BELLCORE MAKES NO
REPRESENTATIONS ABOUT THE ACCURACY OR SUITABILITY OF THIS MATERIAL FOR ANY PURPOSE. IT IS PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES.
AUTHOR
Nathaniel S. Borenstein, Bellcore
Release 1 splitmail(1)