11-11-2016
It's the correct approach. How would your attempt "somehow with printf" look like? Which format string did you specify?
And, please format your posts correctly with code tags for code and data.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I got data like that,
=111
A= alpha
B= 1
C= qq
D= 45
F= ss
G= 334
=1234
A=
B= 2w
C=
D= 443
F=
G=
=3434
A=
B= e3e (5 Replies)
Discussion started by: davidkhan
5 Replies
2. Shell Programming and Scripting
Hi guys,
I'm rather new at using UNIX based systems, and when it comes to scripting etc I'm even newer.
I have two files which i need to compare.
file1: (some random ID's)
451245
451288
136588
784522
file2: (random ID's + e-mail assigned to ID)
123888 xc@xc.com
451245 ... (21 Replies)
Discussion started by: spirm8
21 Replies
3. UNIX for Dummies Questions & Answers
Dear Gurus,
I am very new to UNIX. I appreciate your help to manage my files.
I have 16 files with equal number of columns in it. Each file has 9 columns separated by space. I need to compare the values in the second column of first file and obtain the corresponding value in the 9th column... (12 Replies)
Discussion started by: Unilearn
12 Replies
4. Shell Programming and Scripting
Dear all,
I have been trying to print an entire field, if the first line of the field is matching.
For example, my input looks something like this.
aaa ddd zzz
123 987 126
24 0.650 985
354 9864 0.32
0.333 4324 000
I am looking for a pattern,... (5 Replies)
Discussion started by: Chulamakuri
5 Replies
5. UNIX for Dummies Questions & Answers
I have two text files where the first three columns are exactly the same. I want to compare the fourth column of the text files and if the values are different, print that row into a new output file. How do I go about doing that?
File 1:
100 rs3794811 0.01 0.3434
100 rs8066551 0.01... (8 Replies)
Discussion started by: evelibertine
8 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have two text files with matching first columns. Some of the values in the second column do not match. I want to write a script to print out the rows (only the first column) where the values in the second column do not match.
Example:
Input 1
A 1
B 2
C 3
D 4
Input 2
A 2
B 2... (6 Replies)
Discussion started by: evelibertine
6 Replies
7. Shell Programming and Scripting
Hi,
I have the following file,
chr1 100 200 20
chr1 201 300 22
chr1 220 345 23
chr1 230 456 33.5
chr1 243 567 90
chr1 345 600 20
chr1 430 619 21.78
chr1 870 910 112.3
chr1 914 920 12
chr1 930 999 13
My output would be
peak1 20 22 23 33.5 90
peak2 20 21.78 112.3 12 13
Here the... (3 Replies)
Discussion started by: jacobs.smith
3 Replies
8. Shell Programming and Scripting
Comparing two files on row by row
File1
ecount~100
dcount~200
ccount~300
zxcscount~5000
and so on.
File2
ecount~100
dcount~203
ccount~300
zxcscount~5000
and so on.
If i use diff command (1 Reply)
Discussion started by: onesuri
1 Replies
9. Shell Programming and Scripting
I need to develop a script where I will take two date arguments as parameter date1 and date2 which will in format YYYYMM.
Below is the input file say sample.txt.
sample.txt will have certain blocks starting with P1.
Each block will have a value 118,1:TIMESTAMP.
I need to compare the... (7 Replies)
Discussion started by: garvit184
7 Replies
10. UNIX for Beginners Questions & Answers
there can be n number of columns but the number of columns and header name will remain same in all 3 files. Files are tab Delimited.
a.txt
Name 9/1 9/2
X 1 7
y 2 8
z 3 9
a 4 10
b 5 11
c 6 12
b.xt
Name 9/1 9/2
X 13 19
y 14 20
z 15 21
a 16 22
b 17 23
c 18 24 c.txt
Name 9/1 9/2... (14 Replies)
Discussion started by: Nina2910
14 Replies
LEARN ABOUT DEBIAN
blaze-make
BLAZE-MAKE(1) BlazeBlogger Documentation BLAZE-MAKE(1)
NAME
blaze-make - generates a blog from the BlazeBlogger repository
SYNOPSIS
blaze-make [-cpqrIFPTV] [-b directory] [-d directory]
blaze-make -h|-v
DESCRIPTION
blaze-make reads the BlazeBlogger repository, and generates a complete directory tree of static pages, including blog posts, single pages,
monthly and yearly archives, tags, and even an RSS feed.
OPTIONS
-b directory, --blogdir directory
Allows you to specify a directory in which the BlazeBlogger repository is placed. The default option is a current working directory.
-d directory, --destdir directory
Allows you to specify a directory in which the generated blog is to be placed. The default option is a current working directory.
-c, --no-css
Disables creating a style sheet.
-I, --no-index
Disables creating the index page.
-p, --no-posts
Disables creating blog posts.
-P, --no-pages
Disables creating pages.
-T, --no-tags
Disables creating tags.
-r, --no-rss
Disables creating the RSS feed.
-F, --full-paths
Enables including page names in generated links.
-q, --quiet
Disables displaying of unnecessary messages.
-V, --verbose
Enables displaying of all messages, including a list of created files.
-h, --help
Displays usage information and exits.
-v, --version
Displays version information and exits.
FILES
.blaze/theme/
A directory containing blog themes.
.blaze/style/
A directory containing style sheets.
.blaze/lang/
A directory containing language files.
EXAMPLE USAGE
Generate a blog in a current working directory:
~]$ blaze-make
Done.
Generate a blog in the "~/public_html/" directory:
~]$ blaze-make -d ~/public_html
Done.
Generate a blog with full paths enabled:
~]$ blaze-make -F
Done.
SEE ALSO
blaze-init(1), blaze-config(1), blaze-add(1)
BUGS
To report a bug or to send a patch, please, add a new issue to the bug tracker at <http://code.google.com/p/blazeblogger/issues/>, or visit
the discussion group at <http://groups.google.com/group/blazeblogger/>.
COPYRIGHT
Copyright (C) 2009-2011 Jaromir Hradilek
This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Version 1.2.0 2012-03-05 BLAZE-MAKE(1)