-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathparticles
More file actions
executable file
·19 lines (18 loc) · 1005 Bytes
/
Copy pathparticles
File metadata and controls
executable file
·19 lines (18 loc) · 1005 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
################################################################################
# Simply greps particle_properties.txt which is in the directory given
# by PATH_TO_PARTICLE_PROPERTIES. Useful for quick querying of particle
# names, ids, masses etc..
#
# Title = particles.sh
# Author = Sam Hall
# Email = [email protected]
################################################################################
#
PARTICLE_PROPERTIES=$0.txt
echo ' '
echo '--------------------------------------------------------------------------------------------------------------------------------'
fgrep Name $PATH_TO_PARTICLE_PROPERTIES/$PARTICLE_PROPERTIES
echo '|------------------------------------------------------------------------------------------------------------------------------|'
fgrep $1 $PATH_TO_PARTICLE_PROPERTIES/$PARTICLE_PROPERTIES --color=auto
echo '--------------------------------------------------------------------------------------------------------------------------------'
echo ' '