View Single Post
Posts: 11 | Thanked: 0 times | Joined on May 2010
#11
Tried

Code:
grep -A 13 lock_code /dev/mtd1| tail -1 > /home/user/MyDocs/old_lockcode
but the file made was completely empty, no 'root::' or anything like that. Is the code wrong in some way (should there be a space after 'mtd1|'?)

And by 'playing with -A 50 or -B 50', you mean trying the following codes?

Code:
grep -A 50 lock_code /dev/mtd1| tail -1 > /home/user/MyDocs/old_lockcode
Code:
grep -B 50 lock_code /dev/mtd1| tail -1 > /home/user/MyDocs/old_lockcode
Sorry, not really a Maemo/Linux expert