08-09-2013
Thanks for your response.
With the help of below code i have achieved the given output shown in my previous thread
paste -s ' ' - - < inputfile > outputfile
---------- Post updated at 11:37 PM ---------- Previous update was at 10:23 PM ----------
Typo error in my previous post, the updated one below.
paste -d ' ' - - < inputfile > outputfile
Kindly help me to achieve the desired output.
------------------------------
Desired output should be
------------------------------
empname empid design
robert 787 consultant
alex 898 advocate
Thanks
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all,
Code below:
echo "Oracle Filesystems"
echo "------------------"
echo
for j in `df -l -k |grep total|grep ora|grep -v storage|grep -v vg00|awk '{print $1}'`
do
echo $j is `df -l -k $j |grep total|grep ora|grep -v storage|grep -v vg00|awk -F":" '{print $2}'|awk '{print $1}'` KB... (6 Replies)
Discussion started by: LinuxRacr
6 Replies
2. Shell Programming and Scripting
Hi,
I have a shell script that returns 10 records for the column Name and age from a select query. Where when i store those data in retrieve_list.txt file i need to store the data in a particular format like:-
$Jason$30
$Bill$23
$Roshan$25
Here is my script:
1)... (15 Replies)
Discussion started by: sachin.tendulka
15 Replies
3. Shell Programming and Scripting
I'm writing a script to analyze the logs of an smtp relay machine and I'd like the final output to be displayed in columns showing results from the previous day, week, month, and 45 days. The problem I'm running into is that I can't figure out how to display the columns neatly so there is no... (1 Reply)
Discussion started by: jjamd64
1 Replies
4. Shell Programming and Scripting
Hi all,
Does anyone know how to format the output from mysql from within a shell script?
i.e.
RESULT=`mysql command`
echo ${RESULT}
the ${RESULT} only displays the output on one line instead of how mysql would display it as columns etc (3 Replies)
Discussion started by: muay_tb
3 Replies
5. Shell Programming and Scripting
I have a bash script to output the contents of a text file to html. Everything outputs ok, except this:
######################################################################
# #
# PRIVATE/PROPRIETARY #
# #
# ANY UNAUTHORIZED ACCESS TO, OR MISUSE OF ABC COMPANY #
# SYSTEMS OR DATA MAY... (2 Replies)
Discussion started by: numele
2 Replies
6. Shell Programming and Scripting
Hi all,
Below is my shell script that calls a stored procedure(with output parameter)
I have tried executing this script but it doesn't display the output parameter value. Can anyone help me ? :(
#!/bin/bash
###############################################################################... (7 Replies)
Discussion started by: saviochacko
7 Replies
7. Shell Programming and Scripting
Hi,
I have a file which contains the data in the below format and need to develop a script which will give the output in the tabular format.
Could you please advice me.
Folder:
Workflow: version .
Workflow run status:
Workflow run error code:
Schedule time:
Workflow run type: ... (2 Replies)
Discussion started by: kandi.reddy
2 Replies
8. Programming
Ok so this is what I have.
I have separate client and server codes. I initially had the server listening and accepting connections from ONE port, and it was working great.
Now, what I want to do is, enable the server to listen and accept connections on TWO OR MORE ports , thus, effectively... (2 Replies)
Discussion started by: CrazedMonk
2 Replies
9. Shell Programming and Scripting
Hi
I want to display the following input data into the tabular format as shown in the output.
Input.txt:
Following jobs are in pending state for more than 10 minutes:
JOB_ID JOB_SUBMIT_ID
MAHAR 784308
PUNJA 109367
Following jobs are running for longer time:
JOB_ID... (1 Reply)
Discussion started by: dats
1 Replies
10. Shell Programming and Scripting
Hi All,
I have result log file which looks like this (below): from the content need to consolidate the result and put it in tabular form
1). Intercomponents Checking
Passed: All Server are passed.
======================================================================
2). OS version Checking... (9 Replies)
Discussion started by: Optimus81
9 Replies
LEARN ABOUT LINUX
postcat
POSTCAT(1) General Commands Manual POSTCAT(1)
NAME
postcat - show Postfix queue file contents
SYNOPSIS
postcat [-bdehnoqv] [-c config_dir] [files...]
DESCRIPTION
The postcat(1) command prints the contents of the named files in human-readable form. The files are expected to be in Postfix queue file
format. If no files are specified on the command line, the program reads from standard input.
By default, postcat(1) shows the envelope and message content, as if the options -beh were specified. To view message content only, specify
-bh (Postfix 2.7 and later).
Options:
-b Show body content. The -b option starts producing output at the first non-header line, and stops when the end of the message is
reached.
This feature is available in Postfix 2.7 and later.
-c config_dir
The main.cf configuration file is in the named directory instead of the default configuration directory.
-d Print the decimal type of each record.
-e Show message envelope content.
This feature is available in Postfix 2.7 and later.
-h Show message header content. The -h option produces output from the beginning of the message up to, but not including, the first
non-header line.
This feature is available in Postfix 2.7 and later.
-o Print the queue file offset of each record.
-q Search the Postfix queue for the named files instead of taking the names literally.
This feature is available in Postfix 2.0 and later.
-v Enable verbose logging for debugging purposes. Multiple -v options make the software increasingly verbose.
DIAGNOSTICS
Problems are reported to the standard error stream.
ENVIRONMENT
MAIL_CONFIG
Directory with Postfix configuration files.
CONFIGURATION PARAMETERS
The following main.cf parameters are especially relevant to this program.
The text below provides only a parameter summary. See postconf(5) for more details including examples.
config_directory (see 'postconf -d' output)
The default location of the Postfix main.cf and master.cf configuration files.
queue_directory (see 'postconf -d' output)
The location of the Postfix top-level queue directory.
FILES
/var/spool/postfix, Postfix queue directory
SEE ALSO
postconf(5), Postfix configuration
LICENSE
The Secure Mailer license must be distributed with this software.
AUTHOR(S)
Wietse Venema
IBM T.J. Watson Research
P.O. Box 704
Yorktown Heights, NY 10598, USA
POSTCAT(1)