With the command gossip we can view the contents of the directory, and we can pipe it to get the flag:

gossip | cat flag.txt
# or
gossip;cat flag.txt