$ find -type d -empty
terça-feira, 5 de julho de 2011
segunda-feira, 4 de julho de 2011
Linux: Dell Server / Desktop / Laptop Find Out Service Tag Command
Type the command as follows as root user:
or
Referência: cyberciti.biz/faq/linux-find-dell-service-tag-command
# dmidecode | grep --color -i serialor
# dmidecode -t 1Referência: cyberciti.biz/faq/linux-find-dell-service-tag-command
domingo, 26 de junho de 2011
Shell: Count Number of Characters in a String
x="This is a test"
y="${x//[^s]}"
echo "$y"
echo "${#y}"To match both 's' and 'S', enter:
x="This is a test. S"
y="${x//[^s|S]}"
echo "${#y}"
sexta-feira, 3 de junho de 2011
Multimidia: Adjust vol/gain on ffmpeg transcoding
ffmpeg -i input.mp4 -ab 192 -ar 44100 -vol 512 output.mp3256, no change. 128, decrease twice. 512, increase twice.
terça-feira, 31 de maio de 2011
Perl: Split s String into lines
How to split a string into lines while preserving the trailing "\n":
my @a = split(/^/, $text);
Perl: How to capture STDOUT and the exit code
Capture the exit code but not STDOUT:
Capture STDOUT but not exit status:
$status = system("command");Capture STDOUT but not exit status:
$output = `command`;
quinta-feira, 26 de maio de 2011
Assinar:
Postagens (Atom)
Drunk Penguins
Drunk Penguins