MalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 20 hours agoAn awkward realizationstartrek.websiteimagemessage-square73fedilinkarrow-up1412arrow-down16
arrow-up1406arrow-down1imageAn awkward realizationstartrek.websiteMalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 20 hours agomessage-square73fedilink
minus-squareotacon239@lemmy.worldlinkfedilinkarrow-up15·edit-217 hours 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·17 hours 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.