EXTRACT(1)
๐ extract(1) โ the girlies' guide to peeking at your files ๐
okay so. bestie. this is extract, from section 1 of the General Commands Manual. she's a whole icon. and this page? documents version 1.0.0 of the extract command, no cap. ๐
โจ NAME โจ
extract โ figure out meta-information about a file ๐
๐ธ SYNOPSIS ๐ธ
extract [ -bgihLmnvV ] [ -l library ] [ -p type ] [ -x type ] file ...
๐ฆ DESCRIPTION ๐ฆ
so here's the tea โ โ extract takes every file you hand it in the argument list and tests it, trying to infer meta-information from it. like, it's snooping, but consensually. each file gets run through the meta-data extraction libraries from libextractor.
libextractor sorts meta-information (we also call it keywords, same thing, don't stress) into types. and if you wanna see every type that exists? that's literally what -L is for. slay. ๐
๐ OPTIONS ๐
-bโ spits the output out in BiBTeX format. academic queen behavior ๐-gโ grep-friendly output, meaning all the keywords land on a single line for each file. use the verbose option and it prints the filename first, then the keywords. use verbose twice and it also shows you the keyword types. heads up though: this option will not print keyword types or non-textual metadata. ๐-hโ print a brief summary of the options. your lil cheat sheet ๐ซถ-iโ run plugins in-process (this one's for debugging). by default, each plugin runs in its own process.-llibraries โ use the specified libraries to extract keywords. the general format of libraries is[[-]LIBRARYNAME[:[-]LIBRARYNAME]*]whereLIBRARYNAMEis a libextractor compatible library and is typically of the formjpeg. that minus sign before the libraryname means remove this library from the existing list. and if you wanna run only a few selected plugins? use-lin combination with-n. ๐ซ-Lโ print a list of all known keyword types. the full menu, bestie ๐-mโ load the file into memory and perform extraction from memory (for debugging). main character energy, in-memory edition โจ-nโ do not use the default set of extractors (typically all standard extractors, currentlymp3,ogg,jpg,gif,png,tiff,real,html,pdfandmime-types), use only the extractors specified with the-loption.-ptype โ print only the keywords matching the specified type. by default, all keywords that are found and not removed as duplicates get printed.-vโ print the version number and exit. bye bestie ๐-Vโ be verbose. and you can specify this option multiple times to increase verbosity further. stack it, it's giving layered ๐-xtype โ exclude keywords of the specified type from the output. by default, all keywords that are found and not removed as duplicates get printed.
๐ SEE ALSO ๐
libextractor(3)โ description of thelibextractorlibrary
๐ EXAMPLES ๐
okay these are the good part. watch her work:
$ extract test/test.jpg
comment - (C) 2001 by Christian Grothoff, using gimp 1.2 1
mimetype - image/jpeg
$ extract -V -x comment test/test.jpg
Keywords for file test/test.jpg:
mimetype - image/jpeg
$ extract -p comment test/test.jpg
comment - (C) 2001 by Christian Grothoff, using gimp 1.2 1
$ extract -nV -l png.so -p comment test/test.jpg test/test.png
Keywords for file test/test.jpg:
Keywords for file test/test.png:
comment - Testing keyword extraction
ate. no crumbs. ๐ฅ
โ๏ธ LEGAL NOTICE โ๏ธ
libextractor and the extract tool are released under the GPL. and libextractor is a GNU package. periodt. ๐
๐ BUGS ๐
a couple of file-formats (on the order of 10^3) are not recognized... ๐ญ we don't talk about it.
๐ AUTHORS ๐
extract was originally written by Christian Grothoff <christian@grothoff.org> and Vidyut Samanta <vids@cs.ucla.edu>. use <libextractor@gnu.org> to contact the current maintainer(s). legends only ๐
โญ AVAILABILITY โญ
you can obtain the original author's latest version from http://www.gnu.org/software/libextractor/ โ go get it bestie ๐ง
and that's the whole page! this waslibextractor1.0.0, dated Aug 7, 2012, manual pageEXTRACT(1). go forth and extract, my love ๐ฆโจ๐
๐ฆ where this page comes from
- fedora 43: libextractor 1.13-11.fc43 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 43: libextractor 1.13-11.fc43 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 43: libextractor 1.19-2.fc43 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 43: libextractor 1.19-2.fc43 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: libextractor 1.13-13.fc44 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: libextractor 1.13-13.fc44 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: libextractor 1.19-2.fc44 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- fedora 44: libextractor 1.19-2.fc44 ยท GPL-3.0-or-later AND GPL-2.0-or-later AND GFDL-1.3-or-later AND (GPL-3.0-or-later AND LicenseRef-Fedora-Public-Domain) AND LGPL-2.0-or-later AND LGPL-2.1-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms