Import cmake Modules/FindCUDA.cmake
[gromacs/AngularHB.git] / src / contrib / scripts / sort-hdb
blob4ca6c8169e315b40254459666439fcdfbf80ef94
1 #!/bin/csh -f
3 # first: put each residue on one line; newlines are replaced by '@'
4 # then: sort lines
5 # finally: replace '@' again by newline (and eliminate empty lines)
6 awk '\
7 NF==2 {printf "\n"; printf $0"@";} \
8 NF>2 {printf $0"@"}\
9 ' $1 | sort | awk '\
10 {gsub("@","\n"); print;}\
11 ' | awk 'NF'
13 #last line