码迷,mamicode.com
首页 >  
搜索关键字:shell memcache printf    ( 45225个结果)
linux:shell脚本的一些语法
读取文件的第一行并赋值给变量var=`head -1 filename` #`不是单引号,是Esc下方的一个按键,为命令替换符,将命令行执行结果赋给var读取文件的第N行并赋值给变量var=`sed -n Np filename` #把N替换成数字 逐行读取文件while rea...
分类:系统相关   时间:2014-05-23 22:31:08    阅读次数:389
C程序编译过程
1.1程序被其他程序翻译成不同的格式 1.hello.c#include int main(){ printf("hello world\n"); } 2.编译过程 3.编译系统 预处理器、编译器、汇编器和链接器一起构成了编译系统 预处理阶段。预处理器(cp...
分类:其他好文   时间:2014-05-23 10:30:50    阅读次数:297
shell 学习
$0就是该bash文件名$?是上一指令的返回值$*所有位置参数的内容:就是调用调用本bash shell的参数。$@基本上与上面相同。只不过是“$*”返回的是一个字符串,字符串中存在多外空格。“$@”返回多个字符串。http://blog.csdn.net/andy572633/article/de...
分类:其他好文   时间:2014-05-23 10:00:20    阅读次数:348
linux内核中驱动开发常见的类似多态
#include #include struct test { char name[20]; void (*func)(char *); }; void tttfunc(char *name) { printf("current is %d\n",__LINE__); printf("%s\n",name); } int main() { struct test ttt= { .n...
分类:系统相关   时间:2014-05-22 11:25:09    阅读次数:380
linux shell 命令
linux shell 命令 什么是Shell? Shell 是连接操作系统内核 与 用户 的接口。 终端是shell的表现形式。 什么是Shell编程? Shell 脚本语言加上linux 命令语句就构成了shell程序。优点在于批量处理、不用用户每次手动输入。 bash是shell程序解释器的一种。   常用命令 pwd:print working directory,打印工...
分类:系统相关   时间:2014-05-22 10:39:17    阅读次数:442
c语言中指针悬空
指针悬空 指针悬空在我们使用指针的时候很容易被忽视,主要的表现是:指针所指向的内存 释放,指针并没有置为NULL,致使一个不可控制的指针。 #include #include int *pointer; void func() { int n=8; pointer=&n; printf("pointer point data is %d\n",...
分类:编程语言   时间:2014-05-22 09:03:09    阅读次数:371
linux-shell脚本命令之awk
[ awk简介: ] awk可以从一个文本中获取部分内容, 或者对这个文本进行排版, 使它按某种格式输出. [ awk工作流程: ] awk会把文件一行内容去到...
分类:系统相关   时间:2014-05-22 08:06:46    阅读次数:395
LR杂记-用LoadRunner编写socket应用的测试脚本
DWORD WINAPI mythread( LPVOID lpParameter)    //客户线程{    struct My my;    memcpy(&my,lpParameter,sizeof(My));        printf("One client connect!\n");    char str1; ......
分类:其他好文   时间:2014-05-22 06:31:02    阅读次数:319
C经典之13-Asking的实时监听---ShinePans
#include #include #include //system(); 这个指令需要用到此头文件 #include //toupper要用到 #include //在内存管理时用到的头文件 void main() { char letter; // Letter typed by the user printf("Do you want to continue? (...
分类:其他好文   时间:2014-05-22 06:18:00    阅读次数:340
[Ubuntu] Autostart nginx, php-fpm and mysql in Ubuntu14.04
[nginx]Step 1Download the shell scriptwget https://raw.github.com/JasonGiedymin/nginx-init-ubuntu/master/nginx -O /etc/init.d/nginxStep 2chmod +x /etc...
分类:数据库   时间:2014-05-20 09:00:18    阅读次数:401
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!