MalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 2 days agoAn awkward realizationstartrek.websiteimagemessage-square76linkfedilinkarrow-up1458arrow-down17
arrow-up1451arrow-down1imageAn awkward realizationstartrek.websiteMalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 2 days agomessage-square76linkfedilink
minus-squareotacon239@lemmy.worldlinkfedilinkarrow-up15·edit-22 days agoI used awk for the first time today to find all the MD5 sums that matched an old file I had to get rid of. Still have no idea what awk was needed for. 😅 All my programming skill is in Python. Linux syntax is a weak point of mine.
minus-squareEphera@lemmy.mllinkfedilinkEnglisharrow-up6·2 days agoProbably the very same thing that the post talks about, which is extracting the first word of a line of text. The output of md5sum looks like this: > md5sum test.txt a3cca2b2aa1e3b5b3b5aad99a8529074 test.txt So, it lists the checksum and then the file name, but you wanted just the checksum.
I used awk for the first time today to find all the MD5 sums that matched an old file I had to get rid of. Still have no idea what awk was needed for. 😅 All my programming skill is in Python. Linux syntax is a weak point of mine.
Probably the very same thing that the post talks about, which is extracting the first word of a line of text.
The output of
md5sum
looks like this:> md5sum test.txt a3cca2b2aa1e3b5b3b5aad99a8529074 test.txt
So, it lists the checksum and then the file name, but you wanted just the checksum.