Hi,
I am new to unix. Is their a way to pass the output of the line below to a variable var1.
ls -1t | head -1.
I am trying something like var1=ls -1t | head -1, but I get error.
Situation is: I get file everyday through FTP in my unix box. I have to write a script that picks up first... (1 Reply)
I have a shell script which does the encryption of a file where i am passing the file name as a command line argument,but later on the script waits on the screen to enter Y or N
what is the command i should be using on the shell script
#!/bin/bash -x
outfilename=file.out
echo... (8 Replies)
I have some folders with this structure:
/data/me/a123xxx
Where "xxx" is some changing series of letters, and "123" changes so folders might look like: /data/me/a123xxx
/data/me/a234ysd
/data/me/a534sds etc. The numbers are what matter to me (they identify the folder), so I created an... (7 Replies)
Hi all
I have got a file digits.data containing the following data
1 3 4
2 4 9
7 3 1
7 3 10
I am writing a script that will pass an argument from C-shell to nawk command. But it seems the values in the nawk comman does not get set. the program does not print no values out. Here is the... (1 Reply)
Hi,
I am facing a problem to pass command line arguments that looks like
<script name> aa bb "cc" dd "ee"
I want to pass all 5 elements include the " (brackets). when I print the @ARGV the " disappear. I hope I explain myself
Regards,
Ziv (4 Replies)
Hello all,
New to C and I'm trying to write a program which can run a unix command. Would like to have the option of giving the user the ability to enter arguments e.g for "ls" be able to run "ls -l".
I would appreciate any help.
Thanks
#include <stdio.h>
#include <unistd.h>
#include... (3 Replies)
Hi,
I'm trying to pass the variable in the find command like below
a=log.20111114
find /apps/file3_logs/env3/ -name '$a' -exec ls -lrt {} \;
but it's not working
thanks in advance.
Regards
Thelak (3 Replies)
Can we pass an argument to cut command as below
Suppose cut command is used in for or while loop and we need to pass the incremental counter
cut -f$i
Here $i is an argument.
Like wise it has to come
cut -f1
cut -f2
Where i=1,2,3,.... (1 Reply)
Hi,
I have a .pcap.gz file and I would like to initially gzip it and then pass the resulting .pcap filename as an argument to a piped tool; the right-hand tool is not standardized linux tool but a custom one that strictly requires the string name of a given .pcap file in order for the pcap file... (2 Replies)
Discussion started by: amarn
2 Replies
LEARN ABOUT HPUX
praliases
praliases(1) General Commands Manual praliases(1)NAME
praliases - print system-wide sendmail aliases
SYNOPSIS
file] file] [key ...]
DESCRIPTION
prints out the contents of the alias data base used by to resolve system-wide mail aliases. The alias data base is built with the command
or See sendmail(1M).
The options are:
Read the configuration file specified with this option instead of the default configuration file.
Accesses the alias database built from
file with the command
If this option is not used, accesses the database built from the default alias file
Note that accesses the database, not the alias file itself. If the alias file has changed since the alias database was last built, natu-
rally the output of cannot match the contents of the alias file.
Each key argument, if any, is looked up in the alias database. prints out the aliases to which each key expands in the form:
where mailing list can be a comma-separated list of addresses to which the key resolves.
Note
can be used by privileged users only.
RETURN VALUE
The utility exits with 0 on success, and >0 if an error occurs.
DIAGNOSTICS
key was not found in the alias database.
EXAMPLES
The output reveals that is aliased to is aliased to and that there is no alias for the key
WARNINGS
Because supports NIS aliases, some NIS key-words may appear in the output. These key-words, which include and may be safely ignored; they
merely indicate that is properly updating the alias database.
AUTHOR
was developed by the University of California, Berkeley.
FILES
default alias file
default alias database
SEE ALSO sendmail(1M).
praliases(1)