祁连踏雪 阳关揽月 扬鞭踏马胭脂山 踩沙逐浪黑河岸 分享 http://blog.sciencenet.cn/u/shenxzh

博文

按标题搜索
GMT-Note 基本参数详细说明
2015-6-13 01:09
控制经纬度标示中是否带N或者W PLOT_DEGREE_FORMAT = ddd:mm:ss 不带N或者W PLOT_DEGREE_FORMAT = ddd:mm:ssF 带N或者W 是否带轨道边框 BASEMAP_TYPE = plain 无边框轨道 BASEMAP_TYPE = fancy 有边框轨道 绘图介 ...
个人分类: Shell scripts|5165 次阅读|没有评论
Convert the string to number and compare
2012-2-1 15:19
Use bc $ echo "0.8 0.7" | bc 1 $ echo "0.8 0.7" | bc 0 $ echo ".08 0.7" | bc 0 use awk x = "0.80" y = "0.70" result = $ ( awk - vx = $x - vy = $y 'BEGIN{ print x=y?1:0}' ) if ; then echo ...
个人分类: Shell scripts|2495 次阅读|没有评论
check the existance of a directory in a bash shell
2012-2-1 15:18
To check if a directory exists in a bash shell script you can use the following: if ; then # Control will enter here if $DIRECTORY exists fi Or to check if a directory doesn't exist: if ; then # Control will enter here if $DIRECTORY doesn't exist fi if ; then i ...
个人分类: Shell scripts|2761 次阅读|没有评论

本页有 4 篇博文因作者的隐私设置或未通过审核而隐藏

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-4-28 23:16

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部