MalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 14 hours agoAn awkward realizationstartrek.websiteimagemessage-square57fedilinkarrow-up1348arrow-down14
arrow-up1344arrow-down1imageAn awkward realizationstartrek.websiteMalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 14 hours agomessage-square57fedilink
minus-squareotacon239@lemmy.worldlinkfedilinkarrow-up15·edit-211 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·12 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.