脚本与makefile
一只很笨很懒的肥猫
这个作者很懒,什么都没留下…
展开
-
makefile
推荐一篇makefile管理文档https://www.cnblogs.com/aaronLinux/p/8242552.html原创 2021-11-19 10:58:47 · 182 阅读 · 0 评论 -
linux常用的shell编程例子
模板一:ip配置#!/bin/shifconfig eth0 192.168.1.xxx netmask 255.255.255.0 up >/dev/null 2>&1/sbin/route add default gw 192.168.1.1模板二:Samba挂载#!/bin/shmount -o nolock 192.168.1.xxx:/nfs /mn...原创 2020-07-21 09:12:15 · 212 阅读 · 0 评论 -
关于保留最近三天文件的shell脚本
#!/bin/sh day=$(/bin/date +%Y-%m-%d);count=`/usr/bin/find /home/LEDscr/backup -mtime +1 | wc -l`;/usr/bin/find /home/LEDscr/backup/* -mtime +1 -delete;echo $day - $count;原创 2019-12-03 16:17:49 · 1254 阅读 · 0 评论 -
一个比较通用Makefile模板
模板一CC:=/opt/mainline_toolchain-master/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc#CC:=gccRM:= rm -rfINC:= -I./include/LIBS:= -L./ -lmosquitto -pthreadTARGET:=...原创 2019-12-03 16:04:14 · 95 阅读 · 0 评论