Use stdin for reading data in badger utilities