after running the above code i got this....both the files got copied in the end..what i can understand is that the value of p is not determeined properly...but when used independently it works properly...but inside this loop it doesn't seem to work..
Code:
+ + basename /info_d05/visage/SrcFiles/Customer_Master/Input_Files/AZ_CM_VSG_ADDR_V001_20120710022154_001.dat
fname=AZ_CM_VSG_ADDR_V001_20120710022154_001.dat
+ + AZ_CM_VSG_ADDR_V001_20120710022154_001.dat
+ cut -d_ -f6
./Visage_CM_To_Check_delay_Files.sh[9]: AZ_CM_VSG_ADDR_V001_20120710022154_001.dat: not found
+ sed s/\(.*\)....../\1/
p=
+ + date +%s -d
Invalid character in date/time specification.
Usage: date [-u] [+Field Descriptors]
ptime=
+ [ -gt ]
+ cp /info_d05/visage/SrcFiles/Customer_Master/Input_Files/AZ_CM_VSG_ADDR_V001_20120710022154_001.dat /info_d05/visage/SrcFiles/Customer_Master/
+ + basename /info_d05/visage/SrcFiles/Customer_Master/Input_Files/AZ_CM_VSG_ADDR_V001_20120711022154_001.dat
fname=AZ_CM_VSG_ADDR_V001_20120711022154_001.dat
+ + AZ_CM_VSG_ADDR_V001_20120711022154_001.dat
./Visage_CM_To_Check_delay_Files.sh[9]: AZ_CM_VSG_ADDR_V001_20120711022154_001.dat: not found
+ cut -d_ -f6
+ sed s/\(.*\)....../\1/
p=
+ + date +%s -d
Invalid character in date/time specification.
Usage: date [-u] [+Field Descriptors]
ptime=
+ [ -gt ]
+ cp /info_d05/visage/SrcFiles/Customer_Master/Input_Files/AZ_CM_VSG_ADDR_V001_20120711022154_001.dat /info_d05/visage/SrcFiles/Customer_Master/
I am attempting to grep a list of files for a string an and then only extract the 3rd and 4th field of from the line. That's easy. But I want to prefix the line with the filename that the information came from.
for filename in `ls -1 *.txt'
do
grep search_text $filename | awk '{print $3"... (5 Replies)
I am trying to write a script that prompts users for date and time, then process the gzip file into awk. During the ksh part of the script another file is created and needs to be processed with a different set of pattern matches then I need to combine the two in the end. I'm stuck at the part... (6 Replies)
i have a
filename_1=file1.dat
filename_2=file2.dat
i want to pass the filename in a loop
for((i=1;i<=2;i++)
do
awk{print $1} $filename_$i.dat
done
how should i pass the filename (2 Replies)
Im want to print filename inside loop .. the code im using :-
Filename_1=abc_20090623_2.csv.lk
Filename_2=def_20090623_2.csv.lk
i want to extract filename till .csv eg
Filename_1=abc_20090623_2
Filename_2=def_20090623_2
How can i do this inside the for loop
... (3 Replies)
Hi all,
I have a list of xml file. I need to split the files to a different files when see the <ko> tag.
The list of filename are
B20090908.1100-20090908.1200_CDMA=1,NO=2,SITE=3.xml
B20090908.1200-20090908.1300_CDMA=1,NO=2,SITE=3.xml
B20090908.1300-20090908.1400_CDMA=1,NO=2,SITE=3.xml
... (3 Replies)
Hi,
does anybody knows how to manage, that the filenames are assigned to a variable in a loop afer getting them with set command in a ksh, like:
set B*.txt
i=1
c=$#
x=$((c+1))
echo "$x"
while ] ; do
_ftpfile$i="$"$i
echo "$_ftpfile$i"
i=$((i+1))
done
The first echo returns,... (2 Replies)
Hi all,
I've been tangoing with this one for a couple of days now and I'm still not making any progress.
Basically I'm trying to match three numbers in a string from a text file with matching numbers in a jpeg, and then copying the results to another folder.
Data looks like this:
Model:... (4 Replies)
Hi Experts,
We are developing a script which will wait for the trigger file(with datetime in the trigger file name).
But the problem is when I use 'while' loop to wait for the file, it waits for the filename with wilcard in it that is wait for 'Trigger*.done' file. :eek:
Below is the script
... (4 Replies)
I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix.
I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice.
Files:... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
LEARN ABOUT LINUX
unknown
UNKNOWN(1) General Commands Manual UNKNOWN(1)NAME
unknown - identify possible genotypes for unknowns
SYNOPSIS
A program to rapidly identify which genotypes are possible for individuals typed as unknowns in the input pedigree.
unknown [ -cl ]
DESCRIPTION
unknown infers possible genotypes and mating combinations for parents with unknown genotypes for ilink(1), mlink(1) and linkmap(1).
OPTIONS -c Use conditional allele frequencies.
-l Choose a good set of loop breakers automatically.
RETURN VALUE
0 Successful completion
ERRORS
10 File not found
255 Failure
EXAMPLES
Normally, unknown(1) is run immediately prior to its sister programs, ilink(1), mlink(1) and linkmap(1), like this:
unknown
mlink
FILES unknown(1) reads the two files pedfile.dat and datafile.dat as its own input and produces various temporary files that are used as input to
the next program. These temporary files are ipedfile.dat, upedfile.dat, speedfile.dat and newspeedfile.dat.
NOTES unknown(1) is part of the FASTLINK package, which is a re-implementation of the LINKAGE suite of computer tools that help investigate
genetic linkage as first proposed G.M. Lathrop, J.M. Lalouel, C. Julier, and J. Ott.
AUTHORS
Dylan Cooper, Alejandro Schaffer, and Tony Schurtz based on work originally by Jurg Ott, Ph.D, et. al.
This manual page was written by Elizabeth Barham <lizzy@soggytrousers.net> for the Debian GNU/Linux system (but may be used by others).
WORD-WIDE-WEB
http://www.ncbi.nlm.nih.gov/CBBResearch/Schaffer/fastlink.html
SEE ALSO ilink(1), linkmap(1), lodscore(1), mlink(1).
April 15, 2003 UNKNOWN(1)