01-08-2008
Thanks to all for the needful answers.
9 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hello,
Structure padding & structure size are different on Compaq & HP UNIX. When structures are transfered via netfork from Compaq to HP will this be a problem? If yes, what can be the solution?
Thanks,
shilpa (2 Replies)
Discussion started by: informshilpa
2 Replies
2. UNIX for Dummies Questions & Answers
Hi
Can anyone tell me how to pad zeroes on the left side to a numeric string in unix shell scripting
Your answer is very much appreciated
Thanks
Vijay (2 Replies)
Discussion started by: vijaygopalsk
2 Replies
3. UNIX for Dummies Questions & Answers
Hi,
How do I format the following?
I have a for loop that retrieves me the path and file name of a file. In column fashion I would like to add the time and another variable containing the file's size. This will result in all the time being under each other and all the file size's being under... (6 Replies)
Discussion started by: hugow
6 Replies
4. Programming
Hi,
Can someone explain what is byte padding?
For ex:
struct emp{
char s;
int b;
char s1;
int b1;
long b3;
char s3;
}
What will be the size of this structure?
Thanks (6 Replies)
Discussion started by: naan
6 Replies
5. UNIX for Dummies Questions & Answers
Dear Users,
How do we pad with white space of particular length between two variables.
For Example:
Suppose i define the variables as follows:
a='toyota'
b='camry'
c='honda'
d='accord'
e=`echo "$a"'\n'"$b"`
f=`echo "$c"'\n'"$d"`
If i do an echo on variables e and f i get :... (1 Reply)
Discussion started by: sandeep_1105
1 Replies
6. UNIX for Dummies Questions & Answers
I have a file with records containing dates like:
SMPBR|DUP-DO NOT USE|NEW YORK||16105|BA5270715|2007-6-6|MWERNER|109||||JOHN||SMITH|MD|72211118||||||74559|21 WILMINGTON RD||D|2003-11-6|SL# MD CONTACT-LIZ RICHARDS|||0|Y|N||1411458|
How can I get the date fields in each of my records to be... (1 Reply)
Discussion started by: ChicagoBlues
1 Replies
7. Shell Programming and Scripting
Hi Friends,
I would like to left pad with "0's" on first column say (width six)
I have a large file with the format:
FILE:
1: ALFRED 84378 NY
8385: JAMES 88385 FL
323: SMITH 00850 TX
My output needs to be like:
000001: ALFRED 84378 NY
008385: JAMES 88385 FL
000323: SMITH... (10 Replies)
Discussion started by: sbasetty
10 Replies
8. Shell Programming and Scripting
Hi
How do I a add space with each column .
Each column has fixed size
like 1 st column = 10
2nd column = 20
In each column data can be of variable length.So rest of the length should be space
Frank Student
Sue Admin (3 Replies)
Discussion started by: Chinky23
3 Replies
9. Shell Programming and Scripting
I have this csv file that I would like to sort on the 20th and 21st field. They are high lighted below. My challenge is that when I sort on those fields they are not in order as I would have liked. It seems like I have to pad those fields to the longest value in that fields data.
... (6 Replies)
Discussion started by: GroveTuckey
6 Replies
LEARN ABOUT DEBIAN
amc-note
AMC-NOTE(1) Auto Multiple Choice AMC-NOTE(1)
NAME
AMC-note - computes marks after scans data capture for AMC multiple choice exams.
SYNOPSIS
auto-multiple-choice note --data project-data-dir [--seuil threshold] [--grain granularity] [--arrondi rounding] [--notemin min]
[--notemax max] [--no-plafond | --plafond]
DESCRIPTION
The AMC-note.pl command computes marks for all students from the scoring strategy extracted from the LaTeX source file by AMC-prepare(1)
and from the data capture reports made by AMC-analyse(1).
--data project-data-dir
gives the directory where data files are (see for example AMC-meptex(1)).
--seuil threshold
gives the black ratio threshold (see AMC-analyse(1)) for deciding whether a box is ticked or not.
--grain granularity --arrondi rounding
ask marks to be rounded to a multiple of granularity. If rounding is 'i', rounding is done from below (as with floor(3)). If rounding
is 'n', rounding is done to the nearest multiple of granularity. If rounding is 's', rounding is done from above (as with ceil(3)). For
example, with options "--grain 0.25 --arrondi s", mark 6.285 is rounded to 6.5.
--notemin min
with this option, all marks below min will be replaced by min.
--notemax max
gives the mark to associate to a sheet where all answers are correct. If not used, marks are not scaled.
--plafond
with this option, all marks above max will be replaced by max.
--debug file.log
gives a file to fill with debugging information.
--postcorrect-student s --postcorrect-copy c
requests port-correction from the completed answer sheet identified by student and copy numbers. In post-correction mode, correct
answers are not extracted from the LaTeX source file, but taken from the answers given on this sheet.
AUTHORS
Alexis Bienvenue <paamc@passoire.fr>
Main author
Jean Berard
Translation from French
Georges Khaznadar
Translation from French
COPYRIGHT
Copyright (C) 2008-2012 Alexis Bienvenue
This document can be used according to the terms of the GNU General Public License, version 2 or later.
Auto Multiple Choice 1.1.1 06/19/2012 AMC-NOTE(1)