Sponsored Content
Top Forums UNIX for Beginners Questions & Answers Printf() not displaying as it should. Post 303031598 by Don Cragun on Saturday 2nd of March 2019 05:45:34 PM
Old 03-02-2019
Without seeing the output you are getting and the output you are hoping to get, it is rather hard to guess at what, if anything, is wrong with the code you have shown us. My crystal ball just isn't working well enough today to be able to help with what you have provided.
 

10 More Discussions You Might Find Interesting

1. Programming

printf and imaxdif_t

i was playing with maxint stuff when i found that i could not find a propper way to do a printf() auf a imaxdiv_t. since nobody seems to use it google found nothing. i tried to find a PRIxy code but no success. example: #include <stdio.h> #include <inttypes.h> int main() { ... (2 Replies)
Discussion started by: grumpf
2 Replies

2. Shell Programming and Scripting

the printf command

hello, Im at another part of the program i am writing. Where i think i'm going to need to use the printf command. If anyone can help me figure out the printf layout i would greatly appreicate it. thanks (4 Replies)
Discussion started by: bebop1111116
4 Replies

3. Programming

printf

What is the output of the following program considering an x86 based parameter passing sequence where stack grows towards lower memory addresses and that arguments are evaluated from right to left: int i=10; int f1() { static int i = 15; printf("f1:%d ", i); return i--; } main() {... (2 Replies)
Discussion started by: arunviswanath
2 Replies

4. Shell Programming and Scripting

printf

How to print output in following format? A..................ok AA................ok AAA..............ok AAAAAA........ok "ok" one under one (4 Replies)
Discussion started by: mirusnet
4 Replies

5. UNIX for Dummies Questions & Answers

Displaying Number with printf

I am trying to display a number with commas printf "%d\n" 323232 printf "%d\n" 1234567 I want the output to be: 323,232 1,234,567 I tried to change %d to other formats and could find the solution. any idea? (7 Replies)
Discussion started by: ynixon
7 Replies

6. Shell Programming and Scripting

Displaying Number with printf

I am trying to display a number with commas printf "%d\n" 323232 printf "%d\n" 1234567 I want the output to be: 323,232 1,234,567 I tried to change %d to other formats and could find the solution. any idea? (7 Replies)
Discussion started by: ynixon
7 Replies

7. UNIX for Dummies Questions & Answers

Need help with printf

Hi, I have just completed my first script (:D) and now i just need to format it with printf. This is what I have: #!/bin/ksh TOTB=0 TOTF=0 TOTI=0 HOST=`hostname` echo " FSYSTEM BLKS FREE INUSE MOUNTEDON" df -m | grep -v ":"|grep -v Free|grep -v "/proc"| while read FSYSTEM... (2 Replies)
Discussion started by: compan023
2 Replies

8. UNIX for Dummies Questions & Answers

The meaning of %s in printf

I have this command like that has %s in it, I know %s calls a column, but I am not sure I understand which column (I mean for my case I can check the input file, but I want to know how is this %s used, how comes tha same symbo; gives different columns in one command line: {printf "grep %s... (22 Replies)
Discussion started by: cosmologist
22 Replies

9. UNIX for Dummies Questions & Answers

Using printf in bash

printf "%5.5\n" "1234567890" will print 12345 . How do I get it to print 67890 Essentially, I just want the last 5 characters rather than the first 5. (4 Replies)
Discussion started by: lavender
4 Replies

10. Shell Programming and Scripting

Not able to sort two fields and printf not displaying the correct values

Not able to sorting two fileds resolved printf issue 01-1000/9|JAN 01-0000/6|MAN 01-1010/2|JAN 01-1010/2|JAN 01-1010/2|JAN 01-1000/9|JAN 01-1000/9|JAN 01-1000/9|SAA 01-1000/9|SAA 01-0000/6|SAN 01-0000/6|SAN 1.sort -t'|' -k1,1n -k2,2 file (3 Replies)
Discussion started by: kalia4u
3 Replies
FOX(1)							      General Commands Manual							    FOX(1)

NAME
fox - ab-initio structure determination from diffraction data SYNOPSIS
fox [options] [file.xml] DESCRIPTION
The fox (Free Objects for Crystallography) program was made for the ab initio crystal structure solution from diffraction data. Its most interesting features for ab initio structure determination are: * versatile description of the crystal contents; * automatic correction for special positions and shared atoms between polyhedra; * the ability to use simultaneously multiple powder patterns; * smart global optimization algorithms; * a graphical interface with a 3D crystal structure view and live updates during the optimization process. OPTIONS
This program my be executed with or without command line options or input file (file.xml). It follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below. For a complete description, see the fox wiki http://objcryst.sourceforge.net/Fox/Manual --help Show summary of options. --loadfouriergrd map.grd Load and display 'map.grd' fourier map with (first) crystal structure --loadfourierdsn6 map.DN6 Load and display a DSN6 fourier map with (first) crystal structure --nogui Run without GUI, automatically launches optimization --nogui may be accompanied by the following options: -n 10000 Run for 10000 trials at most (default: 1000000) --nbrun 5 Do 5 runs, randomizing before each run (default: 1), use -1 to run indefinitely -o out.xml Output in 'out.xml' --randomize Randomize initial configuration --silent Produce (almost) no text output --finalcost 0.15 Run optimization until cost < 0.15 --cif2pattern 1.5406 170 5000 .1 Simulate pattern for input crystal, wavelength=1.5406 up to 170o with 500 points anda peak width of 0.1o EXAMPLES
Fox silicon.xml Load file 'silicon.xml' and launch GUI. Fox Cimetidine-powder.xml --nogui --randomize -n 1000000 -o best.xml Load file 'ktartrate.xml', randomize, then make 1 optimization of 1 million trials, and save the best structure in 'best.xml'. Fox Cimetidine-powder.xml --nogui --randomize -n 10000000 --nbrun 10 -o best.xml Load file 'Cimetidine-powder.xml', then make 10 runs (starting from a random structure) of 10 million trials (each run saves one xml file), and save the best structure in 'best.xml'. Fox Cimetidine-powder.xml --nogui --silent --randomize -n 10000000 --nbrun 10 --finalcost 200000 -o best.xml Load file 'Cimetidine-powder.xml', then make 10 silent runs of 10 million trials (each run saves one xml file), and save the best structure in 'best.xml'. For each run, the optimization stops if the cost goes below 200000. AUTHOR
fox was written by Vincent Favre-Nicolin <Vincent.Favre-Nicolin@cea.fr>. This manual page was written by Carlo Segre <segre@debian.org>, for the Debian project (but may be used by others). July 24, 2008 FOX(1)
All times are GMT -4. The time now is 09:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy