Quantcast
Channel: Ralree » bash
Browsing latest articles
Browse All 5 View Live

Renaming Files Sequentially with BASH

I made a cool one-liner in bash today that renames files sequentially. Here’s an example that takes all the JPEGs in a directory and renames them in order: EII=4; for i in *.jpg; do ls $i; \...

View Article



Image may be NSFW.
Clik here to view.

Putting Images on the iPod Touch from Linux

Idea I wanted to put images on my iPod Touch without using iTunes since, as most of us know, there is no good way to use it from Linux. It turns out there is a magic directory on the iPod Touch where...

View Article

Image may be NSFW.
Clik here to view.

Putting Non-YouTube Videos in MxTube

So, you have your Jailbroken iPod Touch or iPhone with 2.0 firmware running OpenSSH, and you have MxTube 1.5 or better, of course. What if you want one of those pesky videos that YouTube deletes all...

View Article

1,000,000th Fibonacci Number One-Liner in C

This is possibly the best one-liner I’ve ever written: gcc -x c -o /tmp/out - -lgmp It compiles a C program given from STDIN, puts it in /tmp/out, and runs it with time to find the time it takes to...

View Article

Telling bash to step aside for zsh

So, let’s say that you want to change your shell to zsh, but fall back to bash if it isn’t available on whatever system you’re using. This is useful if you use something like NIS or LDAP with home...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images