10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to format a command output for the beolow command:
runmqckm -cert -list -db $MQ_KDB -pw $PASSWD -expiry $EXP | grep -v "Certificates in database"
The output will be:
"ABC - cert name"
From: Tuesday, May 25, 1999 11:09:40 AM CDT To: Saturday, May 25, 2019 11:39:40 AM CDT
... (3 Replies)
Discussion started by: bdpl
3 Replies
2. Shell Programming and Scripting
Hi guys.
I am new to this forum so cheers :)
I have a question.
I have created a shell script that puts all the output into 1 file.
The out put is like this:
-----IP------
Data
Data
Data
-----IP------
Data
Data
Data
How can i arrange this to be like this:
IP | Data |... (3 Replies)
Discussion started by: Pandera
3 Replies
3. Shell Programming and Scripting
Hello folks,
I would like ask for a help in one script I'm currently working on.
Main goal is to compare size of file available on remote site and file already downloaded (check if downloaded file is complete and non corrupted).
# Check if files were downloaded correctly
for FILES in... (6 Replies)
Discussion started by: brusell
6 Replies
4. Shell Programming and Scripting
Dear Friends,
Need your help once again.
I have a sql to download output in pipe separated format.
Due to that output looks haphazard.
E.G.
$cat output.temp
123|456|789|0
67345123||3455|1
7124563|432343414||345324
By any was can we arrange it in tabular format for better... (4 Replies)
Discussion started by: anushree.a
4 Replies
5. Shell Programming and Scripting
Hello All,
Please find attached input and output files. I want to write a shell script to achieve this. I tried using awk but not getting how to do this as I am new to shell programming.
Thanks (4 Replies)
Discussion started by: Sudeep Bhattad
4 Replies
6. Shell Programming and Scripting
I am extracting two pieces of information from the following file: /proc/cpuinfo, that I need to merge into one report.
The first command:
grep -i processor /proc/cpuinfo | awk '{print $1$2,$3}'
yields:
processor: 0
processor: 1
processor: 2
processor: 3
The second command:
grep -i... (4 Replies)
Discussion started by: jamarsh
4 Replies
7. Solaris
I'm looking for a CLI utility that will capture all the commands you type at the Solaris CLI (and their output) into a file. I'm sure it's called "scripter", but I can't find anything on a command called scripter.
Does anyone know of a such a command?
Your help will be greatly... (3 Replies)
Discussion started by: soliberus
3 Replies
8. Shell Programming and Scripting
How i can combine output of two commands in one file.......i tried this but it is not working although each command is working good seperately.....
head -1 filename | tail -1 filename
i think there is problem with command concatenator? (16 Replies)
Discussion started by: 33junaid
16 Replies
9. UNIX for Dummies Questions & Answers
How could you put the output of two commands into one file using a single command? For example put the output of a grep command and a sort command into one file together.
Here is another rough explanation of what I am trying to do;
output of
$ grep pattern file1
plus output of
$ sort file... (8 Replies)
Discussion started by: enuenu
8 Replies
10. UNIX for Advanced & Expert Users
Dear Forum,
My .cshrc settings are embedded in a massive jungle of code distributed all over the place, where finding anything is a "needle in a haystack" daily pain in the royal backside.
Is there anyway, i can dump out every command and file executed to STDOUT after sourcing my .cshrc ???
... (2 Replies)
Discussion started by: fawqati
2 Replies