ubifs 学习

http://www.chinadmd.com/file/ouxxvcriu3tuaereesap6cer_1.html

分析ubi image

http://www.iptvfans.cn/wiki/index.php/%E5%B0%8F%E7%B1%B3R2D%E8%B7%AF%E7%94%B1%E5%99%A8%E5%9B%BA%E4%BB%B6%E5%88%86%E6%9E

use nandsim 模拟ubifs

http://trac.gateworks.com/wiki/linux/ubi

 

if csv file like following
11,002,4,6,’04abbqq’
23,22,09,11,’00033ss00′
0444,001,009,00001,’hi’

Use following command

sed ‘s/^0*\([^,]\)/\1/;s/,0*\([^,]\)/,\1/g’

It will be like:

11,2,4,6,’04abbqq’
23,22,9,11,’00033ss00′
444,1,9,1,’hi’

Best clear leading zero script!!!

 

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: