`
jacky
  • 浏览: 26057 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论

UNIX: Some useful commands

阅读更多
1. To search a string from the content of files.
   E.g. Search 'logo.gif' from all jsp,html and xsl files under current folder

find . \( -name '*.jsp' -o -name '*.html' -o -name '*.xsl' \) -exec grep -l logo.gif {} \;


2. To get lines in a certain range from file which is huge
   E.g. Get the lines from 20 to 2000 from stdout.txt

sed -n '20,2000p' stdout.txt > test.txt

分享到:
评论

相关推荐

    Unix shell programming in 24 hours.pdf

    Child processes inherit some attributes from their parent. #### Shell Programming **Variables** - **Defining Variables** Variables store values that can be used later in a script. They are defined ...

    2009 达内Unix学习笔记

    集合了 所有的 Unix命令大全 登陆服务器时输入 公帐号 openlab-open123 telnet 192.168.0.23 自己帐号 sd08077-you0 ftp工具 192.168.0.202 tools-toolss 老师测评网址 http://172.16.0.198:8080/poll/ 各个 ...

    Linux System Administrator Guide Version0.9

    - **Major Services in a UNIX System**: These include essential services such as `init`, logins from terminals, syslog, periodic command execution (cron and at), graphical user interfaces, networking, ...

    BSD.Hack.B00V3DWD80

    If you want more than your average BSD user--you want to explore and experiment, unearth shortcuts, create useful tools, and come up with fun things to try on your own--BSD Hacks is a must-have....

    shell cheat sheet

    This cheat sheet provides a comprehensive overview of essential shell commands, constructs, and utilities commonly used in UNIX/Linux environments. It is designed to serve as a quick reference guide ...

    Serial Programming Guide for POSIX Operating Systems

    Some standard commands include: - **AT+** to query or set parameters. - **ATZ** to reset the MODEM. - **ATH** to hang up. - **ATS0=110** to set the baud rate. ##### Common MODEM Communication ...

    VCS Tech Talk

    - **Implementation**: The GAB driver is implemented as a UNIX character device driver. It uses Low Latency Transport (LLT) for reliable messaging and the MAC Switch Driver (MSW) for performance and ...

    Web.Client.Programming.with.Perl.Automating.Tasks.on.the.Web.pdf

    commands like ftp and finger, archie and telnet, and so on. With the arrival of graphical browsers for the Web, the Internet suddenly exploded. Anyone could find things on the Web. You didn't need to...

    php.ini-development

    Turning on this setting and managing its maximum buffer size can yield some ; interesting side-effects depending on your application and web server. ; You may be able to send headers and cookies ...

    Turbo C 2.00[DISK]

    This is especially useful if you have modified the colors or editor keys. 3. Floppy Disk - This option will build either a command line or Integrated Development Environment version for a two ...

    Qemu-1.0.1 for windows

    -chardev socket,id=id,path=path[,server][,nowait][,telnet],[mux=on|off] (unix) -chardev udp,id=id[,host=host],port=port[,localaddr=localaddr] [,localport=localport][,ipv4][,ipv6][,mux=on|off] -...

    Turbo C 2.01[DISK]

    This is especially useful if you have modified the colors or editor keys. 3. Floppy Disk - This option will build either a command line or Integrated Development Environment version for a two ...

    a project model for the FreeBSD Project.7z

    Because some committers work on different parts, the total number in the committers section of the triangle is higher than in the above triangle. The kernel is the main building block of FreeBSD. ...

    qemu-0.13.0(编译过全处理器支持)

    -chardev socket,id=id,path=path[,server][,nowait][,telnet],[mux=on|off] (unix) -chardev udp,id=id[,host=host],port=port[,localaddr=localaddr] [,localport=localport][,ipv4][,ipv6][,mux=on|off] -...

    VB编程资源大全(英文源码 其它)

    6 , chunks.zip This will open a file and read it in "Chunks" of a selected file.<END><br>7 , logging.zip ... <END><br>93,SystemInfo.zip SystemInfo gets some imp info about OS, Screen, Desktop, ...

Global site tag (gtag.js) - Google Analytics