Give a format specifier that is wide enough to display the heading. Something like:
Edit: I just saw you posted this in the wrong section - better post in "Shell Scripting" next time.
Hi,
I'd like to add one line to the top of my file.
I know there is a command to be able to do it.
But I forgot ......
Please help if you can .... (3 Replies)
Hi,
Can anyone tell me how to print the column name anong with the value from the table in shell script e.g
#!/bin/ksh
var=`sqlplus scott/tiger << -e
set heading off feedback off
select * from emp;
quit;
e`
echo $var
My output should be;
... (5 Replies)
:rolleyes: hi there everybody,
i need help,... thanks anyway!
i am working on a very huge table with the name table1. the problem is that i know only one field name in this table...,
working with a ksh environment i don't know how to view the table to check out the field names :confused:.
... (4 Replies)
I know I know..
for sure one of the easier mysql statements. But somehow I can not figure out this.
I expect to see all distinct items of 'data_12' where 'kwroot' has 'straxx' in, and in the same row 'data_12' ist (not = 'kwsearched' in any existing row)
data_12 ... (6 Replies)
Hi, I am running a shell script on Compaq Tru64 UNIX V5.1A. I have attached the shill script with the sql script it is calling to extract some data(hyp_dta_Extr.sql), and the results. I need the file to be tab delimited. (please note that I have renamed hyp_dta_Extr.sql to hyp_dta_Extr.txt to... (1 Reply)
Please advice to rectify below error
#!/bin/ksh
X=$(sqlplus -s user/pass << EOSQL
set serveroutput on;
set heading off feedback off serveroutput on trimout on pagesize 0
INSERT INTO TEST(df)
VALUES('a');
COMMIT;
EXIT;
EOSQL)
echo $X
echo $?
ERROR at line 2: ORA-00984: column not... (1 Reply)
Hi everyone,
I have a file which has data with different heading and column names as below.
Static Data Ingested
,,,,,,,,,,,,Known Explained Rejections
Column_1,column_2,Column_3,Column_4,,Column_6,Column_7,,% Column_8,,Column_9 ,Column_10... (1 Reply)
Hi, all, I have a file that looks like:
## XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
## YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY
#AA AB AC AD AE AF AG AH AI AJ AK AL
20 60039 60039 ... (5 Replies)
Hi All,
The below code is splitting the file "data.csv" into several files based on the"client_code" column.
date_yyyymmdd=$(my_date "" -e"%Y%m%d")
file_format="_$date_yyyymmdd.csv
awk '{print $2, $3> DIR"/clients_" $1 file_out}' FS=' *; *' OFS=";" DIR="$TEMPL" file_out="_$file_format"... (3 Replies)
Hi,
Below is the format of a report generated by a custom reporting solution. I opened the report in Notepad++ and junked data and values as in the image below.
https://www.unix.com/attachment.php?attachmentid=7907&stc=1&d=1575507708
I want to convert the values to a PIPE delimited format as... (2 Replies)
Discussion started by: ramkrix
2 Replies
LEARN ABOUT DEBIAN
paf
PAF(1p) User Contributed Perl Documentation PAF(1p)NAME
paf - Pod Abstract Filter. Transform Pod documents from the command line.
SYNOPSIS
sh$>
paf summary /usr/bin/paf
paf add_podcmds SomeModule.pm
paf sort -heading=METHODS Pod/Abstract/Node.pm # METHODS is default
paf sort summary Pod/Abstract/Node.pm
# See Pod::Abstract::Filter::overlay
paf overlay sort cut clear_podcmds SomeClass.pm
# -p will emit pod source, instead of spawning perldoc.
paf -p sort Pod::Abstract::Node
paf -p find hoist Pod::Abstract::Node
DESCRIPTION
Paf is a small but powerful, modular Pod filter and transformation tool. It allows full round-trip transformation of Pod documents using
the Pod::Abstract library, with multiple filter chains without having to serialise/re-parse the document at each step.
Paf comes with a small set of useful filters, but can be extended by simply writing new classes in the "Pod::Abstract::Filter" namespace.
FILTERS
add_podcmds
Add explicit =pod commands at the end of each cut section, so that all pod sections are started with an =pod command.
clear_podcmds
Remove all =pod commands that are not ending cut blocks. This will clean up documents that have been reduced using the "cut" filter too.
cut
Remove all cut nodes, so that only the pod remains.
overlay
paf overlay Source.pm
For overlay to work, there must be a "begin :overlay/end :overlay" section in the Source file, with "=overlay SECTION Module" definitions
inside. The net effect is that any missing subheadings in SECTION are added from the same section in the specified Modules.
Note that this will overlay the whole subheading, INCLUDING CUT NODES, so it can add code to the source document. Use "cut" if you don't
want this.
Each overlaid section will include a "=for overlay from" marker, so that it can be replaced by a subsequent overlay from the same
file/module. These sections will be replaced in-place, so ordering of sections once first overlaid will be preserved.
unoverlay
paf unoverlay Source.pm
Strips all sections marked as overlaid and matching the overlay spec from the source.
sort
paf sort [-heading=METHODS] Source.pm
Sort all of the subheadings in the named heading (METHODS if not provided).
This will move cut nodes around with their headings, so your code will mutate. Use "cut" if you only want pod in the output.
Alternatively, you can also cause sorting of headings to occur by including "=for sorting" at the start of your section (before the first
subheading).
summary
Provide an abbreviated summary of the document. If there is a verbatim node in the body of a heading containing the heading name, it will
be considered an example and expanded as part of the summary.
find
paf find [-f=]name Source.pm
Find specific sub-sections or list items mentioning name. Used to restrict a larger document down to a smaller set that you're interested
in. If no -f is specified, then the word following find will be the search term.
uncut
paf uncut Source.pm
Convert cut nodes in the source into verbatim text. Not the inverse of cut!
number_sections
paf number_sections Source.pm
Applies simple multipart (3.1.2) section numbering to head1 through head4 headings.
Note that number_sections will currently stuff up some of the cleverness in things like summary, as the section names won't match function
names any more.
perl v5.10.1 2010-01-03 PAF(1p)