Changes

From XDSwiki
Jump to navigationJump to search
110 bytes added ,  13:16, 24 October 2016
→‎The script: rev. 0.68 add -H to find command
Line 83: Line 83:  
# revision 0.66 . KD 15/09/2016 add Bruker PHOTON II with .cbf frames
 
# revision 0.66 . KD 15/09/2016 add Bruker PHOTON II with .cbf frames
 
# revision 0.67 . KD 02/10/2016 add BM30A (ADSC SERIAL 924) reverse_phi
 
# revision 0.67 . KD 02/10/2016 add BM30A (ADSC SERIAL 924) reverse_phi
REVISION="0.67 (02-Oct-2016)"
+
# revision 0.68 . KD 24/10/2016 add -H option (follow symlinks) to "find" command (thanks to Jan Gebauer!)
 +
REVISION="0.68 (24-Oct-2016)"
 
#                                                                                                             
 
#                                                                                                             
 
# usage: e.g. generate_XDS.INP "/file/system/frms/mydata_1_???.img"                                                       
 
# usage: e.g. generate_XDS.INP "/file/system/frms/mydata_1_???.img"                                                       
Line 138: Line 139:  
# cope with blanks in directory / file name
 
# cope with blanks in directory / file name
 
IFS=$'\n'
 
IFS=$'\n'
find $dname -name "$bname" -or -name "${bname}.bz2" -or -name "${bname}.gz" -or -name "${bname}.xz" | egrep -v "_00000.cbf|_000.img" | sort > tmp1
+
find -H $dname -name "$bname" -or -name "${bname}.bz2" -or -name "${bname}.gz" -or -name "${bname}.xz" | egrep -v "_00000.cbf|_000.img" | sort > tmp1
 
if [ ! -s tmp1 ]
 
if [ ! -s tmp1 ]
 
then
 
then
2,521

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Navigation menu