Hi
I have the following requirement. i have the following line from a log file
one : two : Three : four : five : six : seven : eight :nine :ten
Now can you pls help what i should do to get only the following output from the above line
two : five : six : seven : Eight
appreciate your... (3 Replies)
Hello,
I am trying to write a bash shell script that does the following:
1.Finds all *.txt files within my directory of interest
2. reads each of the files (25 files) one by one (tab-delimited format and have the same data format)
3. skips the first 10 rows of the file
4. extracts and... (4 Replies)
hello,
I will would be grateful if anyone can help me reply to my post
extract multiple cloumns from multiple files; skip rows and include filenames; awk
Please see this thread.
Thanks
manishabh (0 Replies)
Hi all,
The following lines are taken from a long paragraph:
Labels of output orbitals: RY* RY* RY* RY* RY* RY*
1\1\GINC-COMPUTE-1-3\SP\UB3LYP\6-31G\C2H5Cr1O1(1+,5)\LIUZHEN\19-Jan-20
10\0\\# ub3lyp/6-31G pop=(nbo,savenbo) gfprint\\E101GECP\\1,5\O,0,-1.7
... (1 Reply)
Hi,
I need help to split lines from a file into multiple files.
my input look like this:
13
23 45 45 6 7
33 44 55 66 7
13
34 5 6 7 87
45 7 8 8 9
13
44 55 66 77 8
44 66 88 99 6
I want to split every 3 lines from this file to be written to individual files. (3 Replies)
Hi,
I'm using AWK to try to extract data from multiple files (*.txt). The script should look for a flag that occurs at a specific position in each file and it should return the data to the right of that flag.
I should end up with one line for each file, each containing 3 columns:... (8 Replies)
Hi,
I'd like to process multiple files. For example:
file1.txt
file2.txt
file3.txt
Each file contains several lines of data. I want to extract a piece of data and output it to a new file.
file1.txt ----> newfile1.txt
file2.txt ----> newfile2.txt
file3.txt ----> newfile3.txt
Here is... (3 Replies)
I have this code
awk 'NR==FNR{a=$1;next} a' file1 file2
which does what I need it to do, but for only two files. I want to make it so that I can have multiple files (for example 30) and the code will return only the items that are in every single one of those files and ignore the ones... (7 Replies)
Hello
I have an output that has a string between quotes and another between square brackets on the same line. I need to extract these 2 strings Example line
Device "nrst3a" attributes=(0x4) RAW SERIAL_NUMBER=SNL2
Output should look like
nrst3a VD073AV1443BVW00083
I was trying with sed... (3 Replies)
Greetings experts,
Have 2 input files, of which 1 file has 1 record per line; in 2nd file, multiple lines constitute 1 record; Hence declared the RS=";"
Now in the first file which ends with ";" at each line of the line; But \nis also being considered as part of the data due to which
I am... (1 Reply)
Discussion started by: chill3chee
1 Replies
LEARN ABOUT DEBIAN
amc-imprime
AMC-IMPRIME(1) Auto Multiple Choice AMC-IMPRIME(1)NAME
AMC-imprime - prints AMC multiple choice answer sheets to be distributed to the students
SYNOPSIS
auto-multiple-choice imprime --sujet subject.pdf --fich-nums numbers-file.txt --data data-dir --methode method
[where-to-print-arguments...]
DESCRIPTION
The AMC-imprime.pl command prints selected copies from a AMC multiple choice answer sheet.
What to print
The following arguments describe what to print:
--sujet subject.pdf
sets the subject file (prepared by AMC-prepare(1)).
--fich-nums numbers-file.txt
gives a file where the numbers of the copies to be printed are written (one number per line). If this argument is not given, all the
copies will be printed.
--data data-dir
gives the directory where data files are (see for example AMC-meptex(1)). The layout database in the data directory is used to know at
which page of the subject file each copy begins and ends.
Where to print
Several printing methods are currently defined:
o with "--methode CUPS", AMC-imprime.pl prints to a CUPS printer. One print job is sent for each copy, allowing for exemple to use
stapling. Use the following options with this method:
--imprimante printer
sets the CUPS printer name to print to.
--options cups-options
gives CUPS options, in the opt1=value1,opt2=value2,... format.
o with "--methode file", AMC-imprime.pl outputs the answer sheets to files (one for each copy).
--output filename
sets the filename for outputs. The '%e' sequence will be replaced by a 4-digits copy number. If filename does not contain '%e', the
string '-%e.pdf' will be added at its end.
o with "--methode command", AMC-imprime.pl will use a provided command for each copy.
--print-command command
gives the command to be used for printing. The command string will be split at each space character (even when using quotes...).
The sequence '%f' will be replaced by a PDF filename (containing the copy to print), and '%e' will be replaced by the copy number.
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-IMPRIME(1)