![]() |
Re: I just found my old N800
Which should be a number one not a letter i -- I don't recall ever typing an i
do you mean in "tail"? edit: I AM DUMB! I see it now! |
Re: I just found my old N800
Just copy and paste if you can. :)
rootsh grep -A 13 lock_code /dev/mtd1 | tail -1 |
Re: I just found my old N800
Quote:
" grep: invalid number 'lock_code' " |
Re: I just found my old N800
Quote:
|
Re: I just found my old N800
WE DID IT! Thanks guys! You all were amazing. Much appreciated!
|
Re: I just found my old N800
Quote:
rootsh is telling the system to run the following as the root user (i.e. full control) grep is a command that looks for expressions and prints them (literally: g/re/p ...get.. regular expression.. and print) -A 13 is a flag telling grep to match something and also print the next 13 lines after whatever matches lock_code is literally the phrase (the expression) we're looking for /dev/mtd1 is the filename we're going to search through (in this case, a filehandle for Memory Technology Device subsystem number one in Linux) | is a pipe that takes the output from the commands on the left and feeds it as input to the commands on the right tail is a command that prints the last few lines of input -1 is a flag telling the tail command to just print one line (the last line only) I figured it might help to understand what it's doing to help get the command right. |
Re: I just found my old N800
Quote:
|
Re: I just found my old N800
Quote:
|
Re: I just found my old N800
Quote:
Take care! |
Re: I just found my old N800
Quote:
Code:
(1,$)g/regular expression/command list [1] "Ed is the standard text editor." |
All times are GMT. The time now is 10:01. |
vBulletin® Version 3.8.8