i read the variable ph from file and i wanna to print it in awk.
example
ph=`cat tmpbatch`
tail h.txt|grep "| |"|awk -F"|" '{ print "@unpdx.sql",$5 }'"$ph"
i try this but it does not work (8 Replies)
i want to print the column file using awk or cut in dynamic manner
like
trmp=2;temp1=1;temp3=2
awk 'BEGIN{OFS=IFS="\t"} {print $temp,$temp1,$temp3}' client_data.txt
or cut -f $temp1,$temp2,$temp3 -d"\t" file_name .
but it is showing error , In awk can i use variable as in printing... (36 Replies)
i'm trying to do this (in bash darwin);
echo "give me some words: "
read a
c=2 # this is get by other ways
echo $a | awk '{print $c}' # i want to print the column given
# by de $c variable
if there is someone understand what i pretend... (3 Replies)
hi,
i have store variable in $var i want to print it in $3 of file using awk.
how can i do it?
file :
var1,var2,var3
var5,var6,var7
var8,var9,var10
.
.
.
i want to print $var in $3 ( for example var3 or var7 or var10)
thanks (3 Replies)
:b:Hi All,
I have a part of a script below:
var1="value1"
awk 'BEGIN {printf("%36s \n ","value1")}'
Instead of directly giving the "value1" , I need to give using "var1" in the above awk statement.
Is this possible?
If so, what is the modified awk command?
Thanks in advance
JS (1 Reply)
Hello,
i need to redirect the output of print to a variable file name:
#This is normal
awk '{ print $17 > "output.txt" }' input
#I need something like this
awk '{ print $17 > "output_${25}.txt" }' input
how to format the output file name to contain a variable? (6 Replies)
hey,
just want to ask how to do this.
ex.
g="hi i am john"
h=`echo $g | awk '{print $2}'`
echo $h
OUTPUT is 'i'
What if I want to use a variable instead of using '2', how do I do that?
Because this one does not work:
a=2
h=`echo $g | awk '{print ${$a}}'`
this one also does not... (3 Replies)
i have this variable:
varT="1--2--3--5"
i want to use awk to print field 3 from this variable. i dont want to do the "echo $varT".
but here's my awk code:
awk -v valA="$varT" "BEGIN {print valA}"
this prints the entire line. i feel like i'm so close to getting what i want. i... (4 Replies)
Hi,
Can anyone help with the below please?
I have written some code which takes an input file, and and prints the contents out to a new file - it then loops round and prints the same columns, but increments the ID column by 1 each time.
Input file;
NAME,1,15-Dec-15,
NAME,1,21-Dec-15,... (9 Replies)
Discussion started by: Ads89
9 Replies
LEARN ABOUT DEBIAN
pdfconcat
PDFCONCAT(1) General Commands Manual PDFCONCAT(1)NAME
pdfconcat - program to concatenate several PDF files.
SYNOPSIS
pdfconcat -o outfile.pdf input1.pdf [inputN.pdf ...]
DESCRIPTION
This manual page documents briefly the pdfconcat command.
pdfconcat is a small and fast command-line utility written in ANSI C that can concatenate (merge) several PDF files into a long PDF docu-
ment. External libraries are not required, only ANSI C functions are used. Several features of the output file are taken from the first
input file only. For example, outlines (also known as hierarchical bookmarks) in subsequent input files are ignored. pdfconcat compresses
its input a little bit by removing whitespace and unused file parts. This program has been tested on various huge PDFs downloaded from the
Adobe web site, plus an 1200-pages long mathematics manual typeset by LaTeX, emitted by pdflatex, dvipdfm and `gs -sDEVICE=pdfwrite',
totalling 5981 pages in a single PDF file.
OPTIONS -o output.pdf
Place output in file output.pdf
SEE ALSO imgmerge(1), xpaint(1).
AUTHOR
pdfconcat was written by Peter Szabo <pts@fazekas.hu>.
This manual page was written by Josue Abarca <jmaslibre@debian.org.gt>, for the Debian project (and may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 or any later version
published by the Free Software Foundation please see /usr/share/common-licenses/GPL-2 for the full text of the licence.
January 22, 2010 PDFCONCAT(1)