Hi All,
I have a .dat file named test.dat where I have stored some process IDs.
Now I need to pick a process ID, one by one and then fire kill -9 for each of those. The logic should be:
1. open file <filename.dat>
2. read until last line of file
3. if process ID is found fire kill -9... (5 Replies)
I have one file data.txt. This data.txt file contain "no of head=3" string.
From a shell script I want to check whether data.txt file contains "no of head" string or not, if yes then want to fetch the value 3 and store it in a variable. Anyone plz help me. (4 Replies)
Hi,
I have the Ms Excel file(test.xls) in my UNIX box. I would like to read the excel file and create files for each column.
Please find an example.
My excel file like this data:
Num Data
1 a1
2 b2
3 c3
4 d4
5 e5
6 f6
7 h7
My output:
I want create 2 files(num.log and... (3 Replies)
The binary file is
ELF-64 executable object file - IA64.
How i know that the source is
Is there any comamnd in unix i can read these kind of files or use a thirty party software?
Thanks for your help (8 Replies)
Hi,
I'm new to unix.. I need to read only the first two values from a file that contains many data....My record is like this
FTG_ver_num=7.0
RUN_ID=2
$$tgt_envrnmt_cd=FTG
$$WRK_FLW_CD=NPL
I need oly the values of ETG_ver_num and RUN_ID.
i.e) output to be 7.0 and 2
The code i used... (2 Replies)
hi all,
I have flat file in unix. By using sql loader i need to import the data from the flat file. I have created a control file, table with the below data structure and pasted the sample input file. I am not sure whether it is a right way to do it. can anyone provide the thought on this.
... (2 Replies)
I have input data looks like this which is a part of a csv file
7,1265,76548,"0102:04"
8,1266,76545,"0112:04"
I need to make the output data should look like this and the output data will be part of text file:
7|1265000 |7654899 |A|
8|12660000 |76545999 |B|
The logic behind the... (6 Replies)
Discussion started by: RJG
6 Replies
LEARN ABOUT DEBIAN
minccomplete
MINCCOMPLETE(1) User Contributed Perl Documentation MINCCOMPLETE(1)NAME
minccomplete - checks if a MINC file is complete
SYNOPSIS
minccomplete [options] <file.mnc>
minccomplete is designed as a QC tool that you can use to check if MINC or xfm files have been completely written.
DESCRIPTION
minccomplete will check if a file exists and is completely written. The reasons for non-completion are varied but typically caused when a
process writing a MINC or xfm file is interrupted. A zero will be returned if the file is complete and a -1 if it isn't.
Examples:
$ minccomplete in.mnc
0
$ minccomplete in.xfm
0
A MINC file is returned as complete if the image attribute image:complete is set. ie:
mincinfo -attvalue image:complete infile.mnc
A xfm file is deemed complete if xfm2param can parse the file. The associated exit codes will also be set as part of this so that
minccomplete can be used in scripts.
An entirely simplistic example:
#! /bin/sh
infile=$1
if [ `minccomplete ${infile}` ]
then
echo "Yes!"
else
echo "Nope, try again"
fi
Problems or comments should be sent to: a.janke@gmail.com
OPTIONS -v, --verbose
Be noisy when doing things
--version
Print version number and exit
-h, --help
Dump some quick help output
--man
Dump a man page
-e, --error_string
Don't die on errors (eg: file not found) and print the supplied value instead
SEE ALSO mincheader(1)mincinfo(1)xfm2param(1)AUTHOR
Andrew Janke - a.janke@gmail.com
COPYRIGHTS
Copyright 2000 by Andrew L Janke
perl v5.14.2 2012-03-09 MINCCOMPLETE(1)