This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #http://caldersphere.rubyforge.org/warbler/ | |
| #~/projetos/minha_aplicacao/config/warble.rb | |
| Warbler::Config.new do |config| | |
| config.dirs = %w(app config lib log vendor tmp) | |
| config.excludes = FileList["lib/tasks/*", "db/meta_data/*", "doc/projeto/**/*", "features/**/*", "log/*","spec/**/*", "test/**/*","tmp/war/**/*", "tmp/*.png", "vendor/remarkable/**/*", "vendor/selenium-server/**/*"] | |
| config.java_libs += FileList["#{RAILS_ROOT}/vendor/plugins/jasper-reports-integration/jars/*.jar"] | |
| config.gems += ["jruby-openssl", "activerecord-jdbc-adapter"] | |
| config.gem_dependencies = true | |
| config.webxml.jruby.min.runtimes = 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Pegar o retorno de uma listagem obtida pelo GREP, lê o conteúdo de cada arquivo da listagem e gravar em outro arquivo | |
| for i in `grep -l "TEXTO" /pasta/arquivo(s)`; do | |
| cat $i >> destino.txt ; | |
| done | |
| Monitorar uma Listagem de Arquivos em um Diretório | |
| while [ 1 ]; do clear; ls -l;sleep 1; done; | |
| Pesquisar e mover arquivos criados/modificados ha mais de quatro dias | |
| $ find . -mtime +4 -exec mv {} temp/ \; |
NewerOlder