Changes
From XDSwiki
Jump to navigation
Jump to search
← Older edit
Newer edit →
Generate XDS.INP
(view source)
Revision as of 13:16, 24 October 2016
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
Kay
Bureaucrats
2,521
edits
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information
OK
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
Log in
Request account
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
Special pages
Printable version