10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am trying a shell script and need your help on taking the results to different output files.
I have tried the below code:
nawk '
{CNF = (length()-10)/7
printf "%9s", substr ($0, 1, 9)
for (i=0; i<=CNF; i++) T = substr ($0, 10+i*7, 7)
TMP = 100 - (T + T + T + T + T + T + T + T... (24 Replies)
Discussion started by: am24
24 Replies
2. UNIX for Beginners Questions & Answers
This is my sample file
cat bipin.txt
Unix is an OS
Unix has its own commmands
Unix is a user friendly OS
Unix is platform independent
Unix is a time sharing OS
the best OS to learn is Unix
Abinitio uses Unix in backend
When i use sed 's/Unix/Linux/' bipin.txt , only the first... (2 Replies)
Discussion started by: Bipin_1991
2 Replies
3. Shell Programming and Scripting
cmd()
{
echo " "
echo "$(whoami)@$(hostname):$(pwd)# $*"
results=`eval $*`
echo $results
}
I want to get the eval $* 's return value and pass it to a new variable $val, and get "eval $*" 's the ... (7 Replies)
Discussion started by: yanglei_fage
7 Replies
4. Shell Programming and Scripting
If I am searching for AA then then BB in a loop, how do I make the output always contain 6 columns of comma separated data even when there may only be 4 search matches?
AA11
AA12
AA13
AA14
BB11
BB12
BB13
BB14
BB15
BB16
Final output:
AA11,AA12,AA13,AA14,,,... (14 Replies)
Discussion started by: jojojmac5
14 Replies
5. Shell Programming and Scripting
Hi,
in my script, i take the last month by
a=$(date --date '1 month ago' +%Y%m)
i expect that it give me in this month "March" as result 201402,
but linux gave me 201403.
IMPe@ABC123:> ~/date --date '1 month ago' +%Y%m
201403
i'm reasonably confused. Any idea?
Thanks in advance,
... (2 Replies)
Discussion started by: IMPe
2 Replies
6. Shell Programming and Scripting
In the following line The AWK statement parses through a listing for files and outputs the results using the {print} command to the screen. Is there a way to (a) send the output to a file and (b) actually perform a cp cmd to copy the listed files to another directory?
ls | awk -va=$a -vb=$b... (1 Reply)
Discussion started by: rdburg
1 Replies
7. Shell Programming and Scripting
I'm looking for a way in Korn shell to zero fill (or space fill) the output from df so that it will sort properly.
"Raw" output from df -k:
df -k
Filesystem kbytes used avail capacity Mounted on
/dev/vx/dsk/rootvol 4131866 3593302 497246 88% /
/proc ... (9 Replies)
Discussion started by: shew01
9 Replies
8. Solaris
i am entering the command, not get the total out put
see the output what i am getting.
SQL> select dbms_metadata.get_ddl ('TABLESPACE','SYSTEM') FROM DUAL;
DBMS_METADATA.GET_DDL('TABLESPACE','SYSTEM')
--------------------------------------------------------------------------------
... (0 Replies)
Discussion started by: pmrajesh21
0 Replies
9. Shell Programming and Scripting
Hi!
Can anyone tell me what went wrong in my shell script?
for dt_val in `cut -f 1 -d '|' /prod/ods/satyaki/sqlldr/grp.dat`
do
echo $dt_val
done
And, the output is -
23
39 (7 Replies)
Discussion started by: satyakide
7 Replies
10. AIX
On AIX 5.3 host, the lvm_queryvg call does not work properly and results in a sudden memory rise. This is happening on one particular host and the call works fine on another host.
Is this a known issue and is there any patch available for this? (0 Replies)
Discussion started by: sandiworld
0 Replies
uux(1) General Commands Manual uux(1)
NAME
uux - UNIX system to UNIX system command execution
SYNOPSIS
[options] command-string
DESCRIPTION
gathers zero or more files from various systems, executes a command on a specified system, then sends standard output to a file on a speci-
fied system. Note that, for security reasons, many installations limit the list of commands executable on behalf of an incoming request
from Many sites will permit little more than the receipt of mail (see mail(1), mailx(1), and elm(1)) via
The command-string is made up of one or more arguments that look like a shell command line, except that the command and file names may be
prefixed by A null system-name is interpreted as the local system.
File names can be one of the following:
o A full path name;
o A path name preceded by where xxx is a login name on the specified system and is replaced by that user's login directory. Note
that if an invalid login is specified, the default will be to the public directory
o A path name preceded by where destination is appended to
o A simple file name (which is prefixed by the current directory). See uucp(1) for details.
For example, the command
gets files and from machines and and executes a diff(1) command, placing the results in in the local directory
Any special shell characters such as or should be quoted, either by quoting the entire command-string, or quoting the special characters as
individual arguments.
attempts to get all files to the execution system. For files that are output files, the file name must be escaped using parentheses. For
example, the command
gets from system and sends it to system performs a command on the file, and sends the result of the cut command to system
notifies you if the requested command on the remote system was disallowed. The list of commands allowed is specified in the file in The
response comes by remote mail from the remote machine.
recognizes the following options:
The standard input to
is made the standard input to the command-string.
Use name as the user identification replacing the initiator user-ID (notification is returned to the user).
Return whatever standard input was provided to the
command if the exit status is non-zero.
Do not copy the local file to the spool directory
for transfer to the remote machine (default).
Force the copy of local files to the spool directory for transfer.
grade is a single letter/number; lower ASCII sequence characters cause the job to be transmitted earlier during a particu-
lar conversation.
Output the jobid (the job identification ASCII string) on the standard output. This job identification can be used by to obtain
the status or terminate a job (see uustat(1)).
Do not notify the user if the command fails.
Do not start the file transfer, just queue the job.
Report status of the transfer in
file.
Produce debugging output on standard output.
The debug_level is a number between 0 and 9. The higher the number, the more detailed the information returned.
Send success notification to user.
WARNINGS
Only the first command of a shell pipeline can have a All other commands are executed on the system of the first command.
The use of the shell metacharacter will probably not do what you want it to do. The shell tokens and are not implemented.
The execution of commands on remote systems takes place in an execution directory known to the UUCP subsystem. All files required for the
execution are put into this directory unless they already reside on that machine. Therefore, the simple file name (without path or machine
reference) must be unique within the request. The following command does work:
but the command:
works (if is a permitted command).
Protected files and files that are in protected directories that are owned by the requester can be sent in commands using However, if the
requester is and the directory is not searchable by the request fails.
FILES
configuration files
log and error files
spool directories
lock files
public directory
SEE ALSO
mail(1), uuclean(1M), uucp(1).
Tim O'Reilly and Grace Todino,
O'Reilly & Associates, Inc. USA.
Grace Todino and Dale Dougherty,
O'Reilly & Associates, Inc. USA.
STANDARDS CONFORMANCE
uux(1)