codesnips’s posterous

[Bash] for loop to check file has CR chars

for f in find . -maxdepth 1 -type f | grep -v svn; do file -e apptype compress elf fortran soft tar token troff $f | grep CRLF ; done

Comments [0]

[Bash] Disk Usage

du -cks --si * | sort -rn

Comments [0]

[RPM] Extract RPM file without installing it

rpm2cpio RPM_FILE | cpio -idmv

Comments [0]

Ruby :: Gives you CPU architecture and removes EOL character

ruby -e '%x[uname -i].sub!("\n", "")'

Filed under  //   ruby  

Comments [0]

Hello World

Hello World

Comments [0]