awk '
function rbefore(STR) { return(substr(STR, 0, RSTART-1)); }# before match
function rall(STR) { return(substr(STR, RSTART, RLENGTH)); }# Entire match
function rafter(STR) { return(substr(STR, RSTART+RLENGTH)); }# after
# First line: Reformat headers for sorting and find new order
NR==1 {
for(N=1; N<=NF; N++)
{
IN=$N
OUT=""
# Convert a_3 to a_00000003 so it will sort
while(match(IN, /[0-9]+/))
{
OUT=OUT rbefore(IN) sprintf("%08d", rall(IN));
IN=rafter(IN);
}
OUT=OUT IN;
A[OUT]=N # Creating an array of A["string_0001"]=N
}
C=asorti(A, B); # Sort it into B[1]="string_0001", B[2]="string_0003" etc
for(X in B) D[X]=A[B[X]]; # D[1]=4, maps in to out column
}
# All lines: Assemble string from column order and print
{
OUT=""
for(N=1; N<=C; N++) OUT=OUT OFS $(D[N])
print substr(OUT,2);
}
' FS=";" OFS=";" inputfile > outputfile
Hi,
I have a comma delimited file. I want to sort the fields alphabetically and again store them in a comma delimited file.
For example, My file looks like this.
abc,aaa,xyz,xxx,def
pqr,ggg,eee,iii,qqq
zyx,lmo,pqr,abc,fff
and I want my output to look like this, all fields sorted... (3 Replies)
I'm working on formatting some attendance data to meet a vendors requirements to upload to their system. With some help on the forums here, I have the data close. But they've since changed what they want.
The vendor wants me to submit three fields to them. Field 1 is the studentid field,... (4 Replies)
I have a large flat file with variable length fields that are pipe delimited. The file has no new line or CR/LF characters to indicate a new record. I need to parse the file and after some number of fields, I need to insert a CR/LF to start the next record.
Input file ... (2 Replies)
Gents,
I have a large file and each line of the file contains more than 200 bytes.Please let me a way to have the new line to start when the word "FIT" appears.
I was trialling with 'tr' command but i am not sure how to get it based on bytes and so it wasn't working...
Current... (3 Replies)
I'm facing a strange problem, please help me out.
Here we go.
I want to count number of fields in particular file.
filename and delimiter character will be passed through parameter.
On command prompt if i type following i get 27 as output (which is correct)
cat customer.dat | head -1 | awk... (12 Replies)
Hi,
I have a comma (,) delimited file, in which few fields are enclosed with in double quotes " ". I have to print the records in the file which donot have expected number of field with the line number.
File1
====
name,desgnation,doj,project #header#... (7 Replies)
Hi,
I need your help for below with shell scripting or perl
I/P
key, Sentence
customer1, I am David
customer2, I am Taylor
O/P
Key, Words
Customer1,I
Customer1,am
Customer1,David
Customer2,I
Customer2,am
Customer2,Taylor (4 Replies)
Hi,
I am required to arrange columns of a file i.e make the 15th column into the 1st column.
I am doing
awk 'begin {fs=ofs=","} {print $15,$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12,$13,$14}' ad.data>ad.csv
the problem is that column 15 gets to column 1 but it is not comma separated with the... (10 Replies)
Hi, I have a rquirement in unix as below .
I have a text file with me seperated by | symbol and i need to generate a excel file through unix commands/script so that each value will go to each column.
ex:
Input Text file:
1|A|apple
2|B|bottle
excel file to be generated as output as... (9 Replies)
For an Output like below
Input : <Subject A="I" B="1039502" C="2015-06-30" D="010101010101">
Output : <Subject D="010101010101" B="1039502" C="2015-06-30" A="I">
I have been using something like below but not getting the desired output :
awk -F ' ' '/Subject/ BEGIN{OFS=" ";}... (19 Replies)
Discussion started by: arunkesi
19 Replies
LEARN ABOUT DEBIAN
nunit-console
nunit-console(1) General Commands Manual nunit-console(1)NAME
nunit-console - Test-based front-end to NUnit
SYNOPSIS
nunit-console [assemblies] [options]
DESCRIPTION
nunit-console is a simple but powerful front-end to NUnit, a testing framework for .NET. It will run all or some tests from the assemblies
specified as arguments and display the results.
Results can be written in either XML or plain text.
OPTIONS
/fixture=STR
Run specified fixture
/config=STR
Project configuration to load
/xml=STR
Write test result output data to specified file
/transform=STR
Name of transformation file to run on XML output file.
/xmlConsole
Print XML to the console.
/output=STR
File to receive regular test output
/err=STR
File to reveive test error output
/labels
Label each test in output.
/include=STR
Test categories to include (may contain wildcards)
/exclude=STR
Test categories to exclude (may contain wildcards)
/noshadow
Disable shadow copy
/thread
Run tests on a seperate thread.
/wait Wait for input before closing window.
/nologo
Do no show credits at startup.
/help Show list of available arguments.
SEE ALSO
/usr/share/doc/nunit/html
AUTHOR
This manpage was written by Jelmer Vernooij <jelmer@samba.org> for
the Debian project (but may be used by others).
1 June 2005 nunit-console(1)