01-04-2004
Thanks google but...
I did do extensive searching here to no avail... I found many variations, but none that inserted a blank line if not found. In fact, in reviewing the thread you linked I still don't see the answer. I am a bit sleep deprived since we've been working around the clock to get ready for registration at the college I work for... so I do apologize... but please help just the same. (smile)
This is not homework... I am the acting system administrator (newbie) at a Saint Augustine's College in Raleigh, NC.
I need this file to help the business office compare a list of students who have pre-registered for classes to a list of students who have been awarded financial aid. This way they will know which students have enough aid to pay for classes without manually researching each students account.
Again, thanks again for your reply.
Lorrinda S. Michieka
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need your help,
I want to add a text every 2nd line and also a blank line after 3 line
(In the output 2nd line is "changetype: modify" and every 4th line is blank line)
Input file format
dn: abc
orclsourceobjectdn: abcd
dn: bcd
orclsourceobjectdn: bcda
dn: cba
orclsourceobjectdn:... (7 Replies)
Discussion started by: athidhi
7 Replies
2. Shell Programming and Scripting
Hey gang,
I have:
XXZZXXZZXX 123 asdaffggh dfghyrgr ertyhdhh XXZZXXZZXX 234 sdg XXZZXXZZXX 456 gfg fggfd
That is all on one line. Very simply put I want to do is something like:
sed s'/XXZZXXZZXX /\n/g'
or
tr 'XXZZXXZZXX ' '/n'
I have tried various things but can never get the desired... (6 Replies)
Discussion started by: crowman
6 Replies
3. Shell Programming and Scripting
i need to compare three files in unix
a.txt b.txt c.txt
1 2 1
2 5 3
4 6 5
5 6
6
i need to insert a blank line in the file if i don't find a match
and put the items at the same column if found a match
The items in the files... (4 Replies)
Discussion started by: mad_man12
4 Replies
4. Shell Programming and Scripting
I have a file with data as below :
Heading 1
-------------
Heading 1 data1
Heading 1 data2
Heading 1 data3
Heading 1 data4
Heading 2
-------------
Heading 2 data1
Heading 2 data2
Heading 2 data3
Heading 2 data4
Heading 3
-------------
Heading 3 data1
Heading 3 data2
Heading 3... (2 Replies)
Discussion started by: yoursdivu
2 Replies
5. Shell Programming and Scripting
All I want is to look for the pattern in the file...If I found it at # places... I want print lines after those pattern(line) until I find a blank line.
Log EXAMPLE :
MT:Exception caught
The following Numbers were affected:
1234
2345
2346
Error
java.lang.InternalError:... (3 Replies)
Discussion started by: prash184u
3 Replies
6. Shell Programming and Scripting
Hi all,
I've googling around forum regarding my prob, the nearest would same as thread tittled Insert blank line if grep not found, but she/he did not mention the solution, so I would like to request your help
I've this task, to search in file2 based on pattern in file1 and output it to... (4 Replies)
Discussion started by: masterpiece
4 Replies
7. Shell Programming and Scripting
Hello,
I am trying to write a script that will count the number of characters for each line in a file and all the lines that have less than 80 characters and that are ending with a period, I want it to insert a blank line after them immediately. But, for whatever reason the condition if ]] is... (3 Replies)
Discussion started by: Pouchie1
3 Replies
8. Shell Programming and Scripting
Hi,
I have a file with no blank line anywhere
Its a conf file, The lines between and starts with "#" should be sort out with the first three characters(characters are between (a-z)). and insert a blank space in between the uniq lines. For clear understanding ,pls find the below input file... (11 Replies)
Discussion started by: anil8103
11 Replies
9. Shell Programming and Scripting
Hello,
I have a file that I want to be able to insert a new line before every instance of a regex. I can get it to do this for each line that contains the regex, but not for each instance.
Contents of infile:
Test this 1...
Test this 2...
Test this 3... Test this 4... Test this... (2 Replies)
Discussion started by: deneuve01
2 Replies
10. Shell Programming and Scripting
Hello.
I have a config file (/etc/my_config_file) which may content :
#
# port for HTTP (descriptions, SOAP, media transfer) traffic
port=8200
# network interfaces to serve, comma delimited
network_interface=eth0
# set this to the directory you want scanned.
# * if have multiple... (6 Replies)
Discussion started by: jcdole
6 Replies
LEARN ABOUT DEBIAN
amc-annote
AMC-ANNOTE(1) Auto Multiple Choice AMC-ANNOTE(1)
NAME
AMC-annote - completed answer sheets annotation after marking for AMC multiple choice exams.
SYNOPSIS
auto-multiple-choice annote --projet project-dir --data project-data-dir --fich-assoc assoc.xml [annotation options...]
DESCRIPTION
The AMC-annote.pl command annotates papers scans with scores for all questions, global score and mark, resulting in JPEG files (one for
each page).
--projet project-dir
sets the project directory.
--data project-data-dir
gives the directory where data files are (see for example AMC-prepare(1)).
--cr project-cr-dir
sets the project reports directory, where to find data capture reports prepared by AMC-analyse(1), and where to output annotated scans.
Default value is project-dir/cr.
--fich-noms students-list.csv
sets the students list file name.
--noms-encodage encoding
selects an encoding for file students-list.csv (default is utf-8).
--qualite qual
sets JPEG quality for output files. Default value is 65.
--taille-max maxsize
sets the maximal size for output files (in the format widthxheight, in pixels). Default value is 1000x1500.
--pointsize-nl lines
sets the size of texts requiring that with this size, the number of text lines that fits on the page height must be lines. Default
value is 60.
--verdict header
sets the text header to be printed on each first page of the students copies. This text may contain CR characters for multi-line
headers. Some sequences are substituted in it:
%S
is replaced by the student total score.
%M
is replaced by the maximum total score.
%s
is replaced by the student mark.
%m
is replaced by the maximum mark.
%(ID)
is replaced by the student's name.
%(COL)
is replaced by the value of column COL in the students list for the curent student.
--ch-sign nc
Sets the number nc of significant digits to use when printing global mark.
--symbols symbols-definition
defines how boxes will be annotated. symbols-definition is a comma separated list of H-A:shape:colour constructs, where H is 0 or 1
depending on wether the box has to be checked or not, A is 0 or 1 depending on wether the box is actually checked or not, shape is one
of none, circle, mark, box and coulour is a colour (name or #RGB, see ImageMagick or GraphicsMagick documentation for details). Default
value is "0-0:none,0-1:circle:red,1-0:mark:red,1-1:mark:blue".
--position pos
sets the position of individual questions scores. pos may be 'none' (do dot write individual scores), 'marge' (write scores in the
margin) or 'case' (write scores at the left of the left-most box for the question.
--ecart dx
sets the horizontal space to let between individual question score and the leftmost box when --position case is used.
--ecart-marge x
sets the x position for individual questions scores when written in the margin (in em units).
--line-width lw
sets the line width for symbols drwan on the scans (in pixels). Default value is 2.
--indicatives bool
say if indicative questions are to be annotated (use 1 for a true value; default is false).
--debug file.log
gives a file to fill with debugging information.
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-ANNOTE(1)