BTTB: looping for shell script under embedded linux

November 17th, 2010 mysurface

You may already realized Linux happened to appear at many places, such as web server, storage server, desktop, kiosk machine, mobile devices. Yes, more and more devices running embedded Linux. Yeah, Android is a modified version of Linux kernel too! Scarcity is still an issue, embedded Linux can be very different to Linux that hosted […]

Posted in cut, for, if, seq, Text Manipulation | Hits: 251175 | 19 Comments »

if … then … fi

October 13th, 2006 mysurface

if iis a basic programming checking for condition and reacts based on the condition, bash uses if to check for File integer String For checking the File, let say your file name is stored at $fn, and you wanna check the file is exist ? do this: if [ -e $fn ] then echo “$fn […]

Posted in Bash, echo, if, Misc | Hits: 218602 | 15 Comments »