You can use " > file show /var/tmp/file-name"
root@SRX > file show /config/juniper.conf.1.gz
## Last changed: 2017-10-30 16:12:26 UTC
version 12.1X44-D45.2;
system {
host-name SRX;
root-authentication {
encrypted-password "$1$TvkbLmrv$ByMH9mxLM2NzhNtdXl/Bu/";
}
services {
ftp;
ssh;
telnet;
}
}
Or did I miss anything on the question?