Hi,
I have a file (ASCII text) called passwd which contains the following string: DirticaVduURPjDwfEkzjTAmPbDRelukkuraPhedgdnrKSXlIJgMrKayBqPTTFdngQXoCxJZMImwMrhFidkixjLSAwnqkhdYgWlkbwjEEtwBdZaJhakSbHQYVBknit
I need to extract the first 4 characters of the string, followed by the 2 characters at positions 56 and 57 (counting from 1), and then the last 2 characters of the string. For a total of 8 characters.
I have to do this in one go using only the head and tails commands. Pipes are allowed. The following are not: if, while, for, ;, &, &&, ${}, ||, $(command).
This seems impossible... I know the answer is supposed to be DirtyBit but I haven't been able to get it with this rules.
Any ideas?
Thanks ahead!
I have a file (ASCII text) called passwd which contains the following string: DirticaVduURPjDwfEkzjTAmPbDRelukkuraPhedgdnrKSXlIJgMrKayBqPTTFdngQXoCxJZMImwMrhFidkixjLSAwnqkhdYgWlkbwjEEtwBdZaJhakSbHQYVBknit
I need to extract the first 4 characters of the string, followed by the 2 characters at positions 56 and 57 (counting from 1), and then the last 2 characters of the string. For a total of 8 characters.
I have to do this in one go using only the head and tails commands. Pipes are allowed. The following are not: if, while, for, ;, &, &&, ${}, ||, $(command).
This seems impossible... I know the answer is supposed to be DirtyBit but I haven't been able to get it with this rules.
Any ideas?
Thanks ahead!