07-07-2011
Maybe. Could you show the input data you have and the output data you want?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi everybody:
Could anybody tell me how I can print from a file a selected rows with awk. In my case I only want print in another file all the rows from NR=8 to NR=2459 and the increment each 8 times.
I tried to this:
awk '{for (i=8; i=2459; i+=8); NR==i}' file1 > file2
But doesn't... (6 Replies)
Discussion started by: tonet
6 Replies
2. Shell Programming and Scripting
U have a file
File 1
0.3 0.2 0.4 0.3 0.8 0.11 0.22
0.4 0.23 0.45 0.56 0.78 0.98
0.11 0.32 0.2 0.4 0.45 0.54
0.2 0.33 0.44 0.21 0.22 0.98
0.8 0.2 0.34 0.54 0.98 0.12
0.1 0.22 0.32 0.34 0.89 0.22
File 2
rows columns
3 1
2 3
4 2
5 ... (8 Replies)
Discussion started by: cdfd123
8 Replies
3. Shell Programming and Scripting
Hello all, :)
I have a pattern file some what like this,
cd003
cd005
cd007
cd008
and input file like this,
abc cd001 cd002 zca
bca cd002 cd003 cza
cba cd003 cd004 zca
bac cd004 cd005 zac
cba cd005 cd006 acz
acb cd006 cd007 caz
cab cd007 ... (25 Replies)
Discussion started by: admax
25 Replies
4. UNIX for Advanced & Expert Users
Hi,
I required to print all rows into columns(some comma separated or else) till a pattern match found. Using Solaris UNIX scripting
my input is like
abc
def
ghi
jkl
mno
END
pqr
stu
vwx
yz
123
END
...
... (7 Replies)
Discussion started by: vikash.rastogi
7 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I'd like your support on this, my file looks like this:
25 50 200 10 0 1
10 6 12 17 26 24 30 319 10 -0.83 3.31 270.646 12.48
-163.04 30.38 0 0 0 -2.88 0.64 16.06 34.4 33.08 34.4 33.08
34.06 20.48 6.22 -33.39 33.96
-33.5840381 -71.6177759 -163.26 25.59 34.1
-28.8 -5.6 -9.9 0 0 0 0... (3 Replies)
Discussion started by: Gery
3 Replies
6. Shell Programming and Scripting
I have this in a file
11.22.33.44
yyyyyyuser
With awk/sed, I need this to be output as follows
alias server.domain.com='ssh yyyyyyuser@11.22.33.44' (4 Replies)
Discussion started by: anil510
4 Replies
7. UNIX for Dummies Questions & Answers
Hi I want to print all rows where there is the alphabet N in the 6th column as a substring.
Here is what i tried and not working.Please help !
awk ' { if ( $6 == *"N"* ) print $0} '
awk ' { if ( "${6}" == *N* ) print $0} '
awk ' { if( grep -q N <<<$6) print $0} ' (1 Reply)
Discussion started by: newbie83
1 Replies
8. Shell Programming and Scripting
A text file has two logs of same event & both logs have to be correlated into a single line before same can be processed further
RAW
RunningLog
Date Month Year Time Event
9 JUN 2013 1932 2
10 JAN 2014 1000 4
Duration Closed
... (10 Replies)
Discussion started by: newageBATMAN
10 Replies
9. Shell Programming and Scripting
I tried this. It working fine for small tables. But it is giving values greater than zero in a big file with 8556 columns. Does any one know why ?
awk 'FNR == 1{print;next}{for(i=8556;i<=NF;i++) if($i <= 0){print;next}}' input (5 Replies)
Discussion started by: quincyjones
5 Replies
10. Shell Programming and Scripting
For below lines in a file.
68078971 dance routine (jess far back corner) 13902786
368079527 dance routine 13902786
368081191 dance routine (jess far back) 13902786
I am looking for output as below
68078971, "dance routine (jess far back corner)", 13902786... (4 Replies)
Discussion started by: Anjan1
4 Replies
LEARN ABOUT DEBIAN
pomerge
pomerge(1) Translate Toolkit 1.9.0 pomerge(1)
NAME
pomerge - Merges XLIFF and Gettext PO localization files
SYNOPSIS
pomerge [--version] [-h|--help] [--manpage] [--progress PROGRESS] [--errorlevel ERRORLEVEL] [-i|--input] INPUT [-x|--exclude EXCLUDE]
[-o|--output] OUTPUT [-t|--template TEMPLATE] [--mergeblanks] [--mergefuzzy] [--mergecomments]
DESCRIPTION
Snippet file produced by pogrep or updated by a translator can be merged into existing files See: http://translate.source-
forge.net/wiki/toolkit/pomerge for examples and usage instructions
OPTIONS
--version
show program's version number and exit
-h/--help
show this help message and exit
--manpage
output a manpage based on the help
--progress
show progress as: dots, none, bar, names, verbose
--errorlevel
show errorlevel as: none, message, exception, traceback
-i/--input
read from INPUT in xlf, po, pot, pot formats
-x/--exclude
exclude names matching EXCLUDE from input paths
-o/--output
write to OUTPUT in po, pot, pot, xlf formats
-t/--template
read from TEMPLATE in pot, po, pot, xlf formats
--mergeblanks
whether to overwrite existing translations with blank translations (yes/no). Default is yes.
--mergefuzzy
whether to consider fuzzy translations from input (yes/no). Default is yes.
--mergecomments
whether to merge comments as well as translations (yes/no). Default is yes.
Translate Toolkit 1.9.0 pomerge(1)