MalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 4 days agoAn awkward realizationstartrek.websiteimagemessage-square77fedilinkarrow-up1467arrow-down17
arrow-up1460arrow-down1imageAn awkward realizationstartrek.websiteMalikMuaddibSoong@startrek.website to linuxmemes@lemmy.worldEnglish · 4 days agomessage-square77fedilink
minus-squareotacon239@lemmy.worldlinkfedilinkarrow-up15·edit-24 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·4 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.