How would I echo the same results to two files? One is a running log, and the other is a cache, or sort.
echo "Hello World" >> /Logs/File1 & /tmp/file2
I would just copy it from one place to the other, but the Log keeps history, where I want the /tmp to hold only stuff per session. I tried... (2 Replies)
Hi folks,
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Hi
We are having a requirement where one shell script, say a.sh (which uses Java and connects to Oracle database using JDBC) keeps on running everytime. I created a wrapper (to check whether a.sh is running and if not then to start it) and scheduled it in the crontab. Now all the output from... (3 Replies)
Hi
I am trying to get the output of ls into a file with names seaparated with comma and no spaces.
Here is the content of my dir:
ls
file1 file2 file3 file4this is what I tried:
ls -m > list.txtthe file 'list.txt' looks like:
file1, file2, file3, file4, list.txtI... (25 Replies)
Dear Master.
Help me to command to out put.
Ex log.
"<?xml version=""1.0"" encoding=""UTF-10"" ?><anova-test-bom>
<txid>17251032659</txid>
<authentication>
<user>admin</user>
<password>Amrduoi</password>
</authentication>
<destination>
<msisdn>1111111</msisdn>
... (2 Replies)
hi ,
i am using iostat -nmzx 1 | awk '{ print $4 }' command to get the i/o rates of disks.
but i want command output in a file , how can i capture , this is some what difficult because command output is keep on changing , any way i have to get total output of the command .
please help me .... (1 Reply)
Hi,
I could use some help with a program that examines a log file.
It should output the duration of the steps in minutes.
My problem is that there is no end of a step given, only the begin of a next step.
Actually the problem is that this line comes 3 times, but marks 3 different events:
... (6 Replies)
I ran the following command.
cat abc.c > abc.c
I got message the following message from command cat:
cat: abc.c : input file is same as the output file
How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
I am using UNIX to create a script on our system. I have setup my commands to append their output to an outage file. However, some of the commands return no output and so I would like something to take their place.
What I need
The following command is placed at the prompt:
TICLI... (4 Replies)
Discussion started by: jbrass
4 Replies
LEARN ABOUT ULTRIX
zgrep
ZGREP(1) General Commands Manual ZGREP(1)NAME
zgrep - search possibly compressed files for a regular expression
SYNOPSIS
zgrep [ grep_options ] [ -e ] pattern filename...
DESCRIPTION
Zgrep invokes grep on compressed or gzipped files. These grep options will cause zgrep to terminate with an error code:
(-[drRzZ]|--di*|--exc*|--inc*|--rec*|--nu*). All other options specified are passed directly to grep. If no file is specified, then the
standard input is decompressed if necessary and fed to grep. Otherwise the given files are uncompressed if necessary and fed to grep.
If the GREP environment variable is set, zgrep uses it as the grep program to be invoked.
EXIT CODE
2 - An option that is not supported was specified.
AUTHOR
Charles Levert (charles@comm.polymtl.ca)
SEE ALSO grep(1), gzexe(1), gzip(1), zdiff(1), zforce(1), zmore(1), znew(1)ZGREP(1)