nanocoding

nanocodes

最終更新:

Bot(ページ名リンク)

- view
だれでも歓迎! 編集
name command stdin stdout comment
filelist find . - <filelist>
file exp filter grep 'jpg$\|png$' <filelist> <filelist> jpg or png
get folder name ruby -ne "s=\$_;puts s.scan(/([\/][^\/]*)/)[s.scan(/([\/][^\/]*)/).size-2]"|sort|uniq <filelist> <dirlist>


IO.popen('bash read.sh','r+') do |io|
io.puts ENV['s']
@result = io.gets
end
ENV['res']= @result



s= ENV['s'].chop
unified_name =s.gsub(/[.][\/]/,"").gsub(/[\/]/,"_")
ENV['res']= "cp \"#{s}\" \"#{unified_name}\""

$ cat files.txt|ruby -ne "ENV['s']=\$_;load 'unify_filename.rb';puts ENV['res']



#! /bin/bash

DAYTIME=`date +%Y-%m-%d`

cat << EOF | ed system.log
1,5d
\$-5,\$d
1,\$g/cron/s/^/$DAYTIME /
w system-$DAYTIME.log
q
EOF



res=`grep -c . ua.txt`
s=$*1
cat ua.txt |tail -$s|head -1

タグ:

+ タグ編集
  • タグ:
記事メニュー
ウィキ募集バナー
注釈

*1 $(od -vAn -N4 -tu4 < /dev/random) % $res