02-06-2014
first bunch of four line here is input as it is till 7th column and for 8th and 9th column we append -1 and 0 ..Which means when you read the source file first we will have to print columns till fileds with var* starts and append two extra columns after which we will have to transpose the columns naming var with header as it is shown above .. For eg if there 5 columns naming var and and 5 rows for the columns upto var then there has to be 25 records in the output plus the above 5 records.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I need to capture a file's creation/modification date and time and convert this to a different format, whilst I can easily get the existing format from a ls -l | awk ' { print $......}' or a cut command I do not know how to convert it to a desired format?
I should add that at present the ls -l... (1 Reply)
Discussion started by: barney_clough
1 Replies
2. Shell Programming and Scripting
Hello,
For 2 days now i've been searching for a solution to this. I am now beginning to doubt this is even possible. It's even harder when you don't know how to search for it. (which keywords generate enough relevancy etc..)
I need to parse a config file to generate a CSV file in return.
It... (7 Replies)
Discussion started by: zer0dvide
7 Replies
3. Shell Programming and Scripting
Does anyone knows how to decode the address in interface file using shell , i have done it using perl but can it be done in shell.
master tli tcp /dev/tcp \x00021004ac1414230000000000000000
query tli tcp /dev/tcp \x00021004ac1414230000000000000000 (0 Replies)
Discussion started by: dinjo_jo
0 Replies
4. Shell Programming and Scripting
My input file is Pipe delimited with 10 fields, I am trying to create a tab delimited output file with 6 fields from the provided input file.
Below is sample data
Input file
abc||2|PIN|num||||www.123.com|abc@123.com|
bcd||2|PIN|num|||||abc@123.com|... (3 Replies)
Discussion started by: pasupuleti81
3 Replies
5. Shell Programming and Scripting
Hi,
I have a file in my desktop which is a unicode format. After this file is transferred to Unix using FTP, we are seeing some special character (like rectangle box type) at the first line. The same file is saved as UTF8 (using textpad tool, selecting encode to UTF-8 option) on my desktopand... (7 Replies)
Discussion started by: vfrg
7 Replies
6. UNIX for Dummies Questions & Answers
In Unix/Ksh, when I try to look inside a file it says that the file may be a binary file and if I want to see it anyway. When i say 'yes', it shows me the content filled with unreadable symbols (looks like binary). Is there a command that I can run from the Unix prompt to convert/translate that... (3 Replies)
Discussion started by: arthurs
3 Replies
7. Shell Programming and Scripting
Hi,
I am having couple of files which i used to copy from windows to Linux, so now in case of text files (CTRL^M) appears at end of line. I know i can convert this windows format file to unix format file by running dos2unix.
My requirement here is that i want to do it automatically using a... (5 Replies)
Discussion started by: sarbjit
5 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I am new to this forum, could any one help me out in resolving the below issue.
Input of the flat file contains several lines of text for example find below:
5022090,2,4,7154,88,,,,,4/1/2011 0:00,Z,L,2
5022090,3,1,6648,88,,,,,4/1/2011 0:00,Z,,1... (0 Replies)
Discussion started by: av_sagar
0 Replies
9. Shell Programming and Scripting
Hi ,
I need a help in following scenario.I tried searching in google but couldn't able to find the exact answer. Sorry if i am re-posting already answered query.
While i am trying to convert into log file into csv i couldn't able to get the format which i am looking for.
I converted file... (4 Replies)
Discussion started by: varmas424
4 Replies
10. UNIX for Dummies Questions & Answers
My file format:
--------------------------------------------------
Complete Consistency Check
Valid Area : VALID:VALID
Started by : esanwad
Started at : Thu Dec 11 16:04:46 2014
CNA version : R21H04_EC08
Check range : AREA VALID/VALID
... (4 Replies)
Discussion started by: Gautam Banerjee
4 Replies
LEARN ABOUT DEBIAN
mincconvert
MINCCONVERT(1) MINC User's Guide MINCCONVERT(1)
NAME
mincconvert - convert between MINC 1 to MINC 2 format.
SYNOPSIS
mincconvert [-clobber] [-2] infile outfile
mincconvert -help
DESCRIPTION
mincconvert copies the input file to the output file, possibly converting the file from MINC 1 to MINC 2 format, or vice versa.
With the -template flag, mincconvert creates a "template" volume from the input MINC volume. The template volume preserves all of the
structure (dimensions, variables, and attributes) of the input MINC volume but omits all data. Any attempt to read data will return
zeroes.
The resulting file is typically much shorter than a normal MINC volume, and may be useful for scripts which want to carry such structural
information forward into their output files. As a hint to future programmers and users, this program places a special global attribute in
the file, with the name class and the value template.
OPTIONS
-2 Create a MINC 2 format file
-clobber
Overwrite a pre-existing output file. -help Print a summary of command line options and exit
-template
Create a template file.
-compress N
Compress file with compression level N. Valid compression levels are 0 for no compression to 9 for maximum compression. The option
has no effect if the output file is a MINC 1 file.
-chunk M
Store file in a block-structured arrangement, using hypercubes of edge length M. The option has no effect if the output file is a
MINC 1 file.
-help Print summary of command-line options and exit.
-version
Print the program's version number and exit.
AUTHOR
Bert Vincent - bert@bic.mni.mcgill.ca
COPYRIGHTS
Copyright (C) 2003 by Robert Vincent and the Montreal Neurological Institute.
$Date: 2004-05-20 21:52:08 $ MINCCONVERT(1)