08-09-2013
Help! needed to displaying an output in record format
Hi Friends,
Am new to Unix world and this is my first post in this forum.
I was stuck in displaying the content.
while displaying the content the below points to be taken care
1 ) The header format is repeating
2) To display the value in table format
-------------------------------------------
Example: I have a file which contains the below data
--------------------------------------------
empname
robert
empid
787
design
consultant
empname
alex
empid
898
design
advocate
------------------------------
Desired output should be
------------------------------
empname empid design
robert 787 consultant
alex 898 advocate
--------------------------------------------------------------
I have achieved the below output but this is not my requirement.
---------------------------------------------------------------
empname robert
empid 787
design consultant
empname alex
empid 898
design advocate
Kindly help me to achieve the desired output as shown above
Thanks in advance.
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
INPUT(1) General Commands Manual INPUT(1)
NAME
input - Yagi-Uda project antenna defining program
SYNOPSIS
input [ - h ]
DESCRIPTION
The program input is one of a number of executable programs that forms part of a set of programs, collectively known as the Yagi-Uda
project , which were designed for analysis and optimisation of Yagi-Uda antennas. input is an interactive program, that asks the user for
information about a Yagi design, such as position of elements, spacing between elements, frequency span of interest and a filename to save
the data to. input then writes this information into an ASCII file, which can be read by yagi or optimise The file is ASCII and it's for-
mat is easily understood by inspection (there are comments printed in it), so it can if necessary be edited manually.
After running input and specifying a filename (for example 144e10) you should then type yagi 144e10 and then output 144e10 and optionally
optimise 144e10
OPTIONS
-h Print a help message.
FILES
filename ASCII data file in which design is put.
PLATFORMS
Both DOS and Unix versions have been built. The DOS version as distributed requires a 386 PC with a 387 maths coprocessor.
AUTHORS
Dr. David Kirkby G8WRB (david.kirkby@onetel.net). with help with in converting to DOS/PC from Dr. Joe Mack NA3T (mack@fcrfv2.ncifcrf.gov)
SEE ALSO
first(1), yagi(), output(1), optimise(1), input (5), first(5), yagi(5), output(5) and optimise(5).
Bugs should be reported to
david.kirkby@onetel.net.
Bugs tend actually to be fixed if they can be isolated, so it is in your interest to report them in such a way that they can be easily
reproduced.
If a mistake is made during inputting of data (such as entering an incorrect length), it is not possible to go back and correct this. You
should make a note of the error, and edit the ASCII text file with a text editor (vi, DOS edit etc).
Version 1.16 24th October 2000 INPUT(1)