03-15-2019
What Unix? What shell?
What does man mailx say on either system?
Last edited by RudiC; 03-15-2019 at 12:51 PM..
9 More Discussions You Might Find Interesting
1. How do I send email?
How do I send a file as an attachment on a Unix system (9 Replies)
Discussion started by: SmartJuniorUnix
9 Replies
2. UNIX for Dummies Questions & Answers
How do I send a file as an attachment on a Unix system (9 Replies)
Discussion started by: SmartJuniorUnix
9 Replies
3. Shell Programming and Scripting
Hi,
I would like to send an email with more than one attachement. I am using uuencode. I want to achive by suing uuencode. Also please let me know other ways.
-Thambi (7 Replies)
Discussion started by: thambi
7 Replies
4. Shell Programming and Scripting
Hi All,
We are having important config files in an directory which was accessable by all
/auto/config/Testbed/>ls
config1.intial
config2.intial
config3.inital
often we find that some of the lines are missing in config files, we doubt if some one is removing.
I would like to write... (0 Replies)
Discussion started by: shellscripter
0 Replies
5. Shell Programming and Scripting
got it figured out :) (1 Reply)
Discussion started by: sHockz
1 Replies
6. Programming
I am using gfortran and want to send .o files in separate directory.
Currently I have the following in a bash script. The .mod files are handled ok, but the .o files are still created in the same directory as the source code
fsrc="newunit.f08 math.f08 tString.f08 prout.f08 prary.f08... (1 Reply)
Discussion started by: kristinu
1 Replies
7. Shell Programming and Scripting
Hi all,
i have a folder, with tons of files containing as following,
on /my/folder/jobs/
some_name_2016-01-17-22-38-58_some name_0_0.zip.done
some_name_2016-01-17-22-40-30_some name_0_0.zip.done
some_name_2016-01-17-22-48-50_some name_0_0.zip.done
and these can be lots of similar files,... (6 Replies)
Discussion started by: charli1
6 Replies
8. Shell Programming and Scripting
Given a directory containing say a few thousand files,
please output a list of all the names of the files in the directory that are exactly the same, i.e. have the same contents.
func(a_directory_name) output -> {“matches”: , ... ]}
e.g. func(“/home/my/files”) where the directory... (7 Replies)
Discussion started by: anuragpgtgerman
7 Replies
9. Shell Programming and Scripting
Hi all,
I have a script issue I can't seem to work out.
In a directory I have several folders and I want to send just the sapdata1 to sapdata14 folders and their contents but not sapdataXX/.snapshot
the script is:
#!/bin/bash
# SETUP OPTIONS
export SRCDIR="/scratch/doug/test/sapdata*"... (5 Replies)
Discussion started by: DougyC
5 Replies
APPLY(1) BSD General Commands Manual APPLY(1)
NAME
apply -- apply a command to a set of arguments
SYNOPSIS
apply [-ac] [-#] command argument ...
DESCRIPTION
apply runs the named command on each argument argument in turn.
Character sequences of the form ``%d'' in command, where ``d'' is a digit from 1 to 9, are replaced by the d'th following unused argument.
In this case, the largest digit number of arguments are discarded for each execution of command.
The options are as follows:
-# Normally arguments are taken singly; the optional number -# specifies the number of arguments to be passed to command. If the number is
zero, command is run, without arguments, once for each argument.
If any sequences of ``%d'' occur in command, the -# option is ignored.
-ac The use of the character ``%'' as a magic character may be changed with the -a option.
ENVIRONMENT
The following environment variable affects the execution of apply:
SHELL Pathname of shell to use. If this variable is not defined, the Bourne shell is used.
FILES
/bin/sh Default shell
EXAMPLES
apply echo *
is similar to ls(1);
apply -2 cmp a1 b1 a2 b2 a3 b3
compares the `a' files to the `b' files;
apply -0 who 1 2 3 4 5
runs who(1) 5 times; and
apply 'ln %1 /usr/joe' *
links all files in the current directory to the directory /usr/joe.
HISTORY
The apply command appeared in 4.2BSD.
AUTHORS
Rob Pike
BUGS
Shell metacharacters in command may have bizarre effects; it is best to enclose complicated commands in single quotes ('').
BSD
April 4, 1994 BSD