Such as a flag. TXT file content is "how are you, you won the flag success! Flag is: XXXXXXXX ", XXXXXXXX is to generate a random number, through the echo to the flag. TXT, when I enter the tail flag. TXT, why will only display the content of the XXXXXXXX, and words are not in front of the shows? If I change the random number also to determine the value of the tail flag. TXT can all display content,
Please answer, thank you.
CodePudding user response:
Because the tail by default only display co., LTD. The last part of the characters, such as the last 100.So you want to have a look at the: the number of your random number is more than your determine the number of values. If it is really, that is because: random number + character in front of number & gt; The limitation of tail.
That how to do? Use the tail - n how much do you want to show the line