<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    Let spirit guide you

    thinking in life.

    常用鏈接

    統(tǒng)計(jì)

    API

    Forum

    Site

    WiKi

    最新評(píng)論

    unix script

    grep -rnl "Test" *

    find . -name "*Test*"

    reference http://www.linuxsir.org/main/doc/abs/abs3.7cnhtm/index.html

    posted on 2010-08-02 10:21 cary 閱讀(390) 評(píng)論(8)  編輯  收藏 所屬分類: unix

    評(píng)論

    # re: unix script[未登錄](méi) 2011-10-13 18:35 Nick

    #! /bin/bash

    #compiler
    java -jar ~/eclipse-jee/plugins/org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar $*
      回復(fù)  更多評(píng)論   

    # re: unix script[未登錄](méi) 2011-10-13 18:38 Nick

    Here is a small example:


    <?xml version="1.0" encoding="UTF-8"?>
    <project name="compile" default="main" basedir="../.">

    <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>

    <property name="root" value="${basedir}/src"/>

    <property name="destdir" value="d:/temp/bin" />

    <target name="main">
    <javac srcdir="${root}" destdir="${destdir}" debug="on" nowarn="on" extdirs="d:/extdirs" source="1.4">
    <classpath>
    <pathelement location="${basedir}/../org.eclipse.jdt.core/bin"/>
    </classpath>
    </javac>
    </target>
    </project>

    The syntax used for the javac Ant task can be found in the Ant javac task documentation. The current adapter supports the Javac Ant task 1.4.1 up to 1.6.5 versions.

    If you are using a version above 1.5.0, you can use the nested compiler argument element (<compilerarg>) to specify compiler specific options.


    ...
    <javac srcdir="${root}" destdir="${destdir}" debug="on" nowarn="on" extdirs="d:/extdirs" source="1.4">
    <classpath>
    <pathelement location="${basedir}/../org.eclipse.jdt.core/bin"/>
    </classpath>
    <compilerarg compiler="org.eclipse.jdt.core.JDTCompilerAdapter" line="-1.5 -warn:+boxing"/>
    </javac>
    ...

    Note:

    1. To prevent compiler dependant buildfiles, we strongly advise you to use a <compilerarg> whose "compiler" attribute value is org.eclipse.jdt.core.JDTCompilerAdapter. If this is not set, the buildfile can only be used with the Eclipse compiler. If set, the nested compiler argument is ignored if the name is different from the compiler name specified by the build.compiler property.
    2. <compilerarg> should not be used to set values like target value, source value, debug options, or any options that could be set using the defined attributes of the javac ant task. Its usage must be reserved to pass compiler specific options like warning options. When a command-line argument is specified more than once, the Eclipse batch compiler can report errors like:

    duplicate target compliance setting specification: 1.5

      回復(fù)  更多評(píng)論   

    # re: unix script[未登錄](méi) 2011-10-13 18:42 Nick

    java -cp org.apache.felix.framework-1.8.1.jar:org.apache.felix.shell-1.2.0.jar -d c:\classes *.java  回復(fù)  更多評(píng)論   

    # re: unix script[未登錄](méi) 2012-02-09 14:05 nick

    shell tutorial
    http://bash.cyberciti.biz/guide/Main_Page  回復(fù)  更多評(píng)論   

    # re: unix script[未登錄](méi) 2012-02-09 14:25 nick

    while IFS= read -r line
    do
    echo $line
    rm $line
    done < "./some_file.txt"
      回復(fù)  更多評(píng)論   

    # re: unix script[未登錄](méi) 2012-02-09 14:31 nick

    find . -name "*.js" >xxx

    while IFS= read -r line
    do
    echo $line
    rm "$line"
    done < "./xxx"


    find . -name "*.js"
    echo "completed"
      回復(fù)  更多評(píng)論   

    # re: unix script[未登錄](méi) 2012-04-12 16:43 nick

    for mac
    login as root then:

    sh-3.2# lsof -i | grep LISTEN
    launchd 1 root 19u IPv6 0xffffff8008326d80 0t0 TCP localhost:ipp (LISTEN)
    launchd 1 root 20u IPv4 0xffffff800832bc20 0t0 TCP localhost:ipp (LISTEN)
    launchd 1 root 88u IPv4 0xffffff8008329fa0 0t0 TCP *:10011 (LISTEN)
    launchd 1 root 91u IPv6 0xffffff8008325e80 0t0 TCP *:10011 (LISTEN)
    launchd 1 root 103u IPv6 0xffffff80083269c0 0t0 TCP *:rfb (LISTEN)
    launchd 1 root 104u IPv4 0xffffff800832b500 0t0 TCP *:rfb (LISTEN)
    launchd 1 root 106u IPv6 0xffffff8008326600 0t0 TCP *:ssh (LISTEN)
    launchd 1 root 107u IPv4 0xffffff800832ade0 0t0 TCP *:ssh (LISTEN)
    kdc 66 root 6u IPv6 0xffffff8008326240 0t0 TCP *:kerberos (LISTEN)
    kdc 66 root 8u IPv4 0xffffff800832a6c0 0t0 TCP *:kerberos (LISTEN)
    webfilter 431 root 3u IPv4 0xffffff8008329fa0 0t0 TCP *:10011 (LISTEN)
    webfilter 431 root 4u IPv6 0xffffff8008325e80 0t0 TCP *:10011 (LISTEN)
    java 3165 root 53u IPv6 0xffffff800b467700 0t0 TCP *:http (LISTEN)
    java 3165 root 55u IPv6 0xffffff800b99fd80 0t0 TCP *:8009 (LISTEN)
    java 3165 root 66u IPv6 0xffffff8008325340 0t0 TCP localhost:8005 (LISTEN)  回復(fù)  更多評(píng)論   

    # re: unix script[未登錄](méi) 2012-04-16 15:43 nick

    curl -i
    curl -I
    curl -v http://www.baidu.com  回復(fù)  更多評(píng)論   


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
    相關(guān)文章:
     
    主站蜘蛛池模板: 日本精品人妻无码免费大全| 国产成人精品日本亚洲专区61| 亚洲AV成人精品日韩一区 | 波多野结衣免费在线观看| 亚洲午夜无码久久久久小说| 亚洲精品无码你懂的网站| 久久国产色AV免费观看| 国产精品亚洲综合天堂夜夜| 久久亚洲AV午夜福利精品一区| 好爽又高潮了毛片免费下载| 国产拍拍拍无码视频免费| 亚洲综合无码无在线观看| 亚洲乱码中文字幕久久孕妇黑人| 青娱分类视频精品免费2| jizz在线免费观看| 亚洲人成欧美中文字幕| 亚洲福利在线视频| mm1313亚洲精品无码又大又粗| 2020因为爱你带字幕免费观看全集| 免费人妻精品一区二区三区| 亚洲成aⅴ人在线观看| 激情综合色五月丁香六月亚洲| 成年18网站免费视频网站| 日本在线看片免费| 一二三四在线观看免费中文在线观看| 亚洲日产2021三区在线 | 亚洲国产综合无码一区二区二三区| 色片在线免费观看| 国产又黄又爽胸又大免费视频| 亚洲精品精华液一区二区| 亚洲成av人片在线看片| 亚洲AV成人片色在线观看高潮| 亚洲日本韩国在线| 国产免费131美女视频| 一二三四视频在线观看中文版免费| 成人久久免费网站| 手机永久免费的AV在线电影网| 亚洲精品精华液一区二区| 久久久久久亚洲精品影院| 亚洲专区先锋影音| 亚洲成色WWW久久网站|