Changeset 09f4dc for util/src/SortByRings.sh.in
- Timestamp:
- Jul 23, 2009, 9:14:18 AM (16 years ago)
- Children:
- 3b470f
- Parents:
- 2218dca (diff), 6ce722 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
util/src/SortByRings.sh.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
util/src/SortByRings.sh.in
r2218dca r09f4dc 50 50 lines=(`cat <$file`) 51 51 map=(`cat <MoleculesRingSorted.dat`) 52 i=0 52 i=1 53 echo "${lines[0]}" >>${file}_sorted 53 54 while [ $i -lt ${#lines[@]} ]; do 54 let j=`echo ${map[$i]} | awk -F" " {'print $1'}`55 55 #echo "lines: ${lines[$i]}" 56 56 #echo "Map: ${map[$i]} -> $i" 57 name=`echo "${lines[$j]}" | awk -F" " {'print $1'}` 58 echo -e -n "$name\t$i\t" >> ${file}_sorted 59 echo "${lines[$j]}" | sed -e "s#[0-9a-zA-Z,_\-]*\t[0-9]*\t##" >>${file}_sorted 57 let j=`echo ${map[$i]} | awk -F" " {'print $1'}` 58 name=`echo "${lines[$j]}" | awk -F" " {'print $2'}` 59 echo -e -n "$i\t$name\t" >> ${file}_sorted 60 echo "${lines[$j]}" | sed -e "s#[0-9]*\t[0-9a-zA-Z,_\-]*\t##" >>${file}_sorted 60 61 let i=$i+1 61 62 done
Note:
See TracChangeset
for help on using the changeset viewer.
