Canalize a saída para tee
, que imprime sua entrada para stdout
e, opcionalmente, também para vários arquivos:
grub-mkpasswd-pbkdf2 | tee out
% grub-mkpasswd-pbkdf2 | tee out
Enter password:
Reenter password:
PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.CF99115D7DE57D065ECA4420F829FACD1FEDDD1C08ACFDDEBBB6C2948DECECCA37DEBE4F0FB37FC8CAE385A1A440663225AFB2E79B4E69557F2F9BD13AB6E586.5D5AA1A70E60CF1C09AB6B9EF831996E3F60DF7B85ADE364C7E469DC88BAAE3D8DE0F1C2A5E60267170580564AF2A36DADA663DE2DF4407562A90FEAC7E78262
% cat out
Enter password:
Reenter password:
PBKDF2 hash of your password is grub.pbkdf2.sha512.10000.CF99115D7DE57D065ECA4420F829FACD1FEDDD1C08ACFDDEBBB6C2948DECECCA37DEBE4F0FB37FC8CAE385A1A440663225AFB2E79B4E69557F2F9BD13AB6E586.5D5AA1A70E60CF1C09AB6B9EF831996E3F60DF7B85ADE364C7E469DC88BAAE3D8DE0F1C2A5E60267170580564AF2A36DADA663DE2DF4407562A90FEAC7E78262