`
niwtsew
  • 浏览: 72851 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

A Shell Script to do shell scripting faster

 
阅读更多

http://unix-school.blogspot.in/2011/08/shell-script-to-do-shell-scripting.html

 

 

$ cat workon
#!/usr/bin/bash

if [ ! -f $1 ]; then
  echo "#!/usr/bin/bash" > $1
fi

while [ 1 ];
do
        vi $1
        chmod 755 $1
        ./$1
        read dummy
done


in .vimrc
map #2 :wq!^M
 
分享到:
评论

相关推荐

    bash Cookbook: Solutions and Examples for bash Users, 2nd Edition

    Shell scripting is a way to harness and customize the power of any Unix system, and an essential skill for Unix users, system administrators, and even professional Mac OS X developers. But beneath ...

    UE(官方下载)

    You can use a combination of a script and tool to create a single file from multiple files. Sum Column/Selection in Column Mode This power tip demonstrates how to calculate the sum from a column of ...

    Modern Operating Systems 3rd

    6. **The Shell:** The shell is a command-line interface that allows users to interact with the operating system. Shells provide scripting capabilities and facilitate automation of tasks. 7. **System ...

Global site tag (gtag.js) - Google Analytics