LinuxCommandLibrary

filecheck

Analyze file types and their structure

TLDR

Match input_file content with pattern file check_file

$ FileCheck --input-file=[path/to/input_file] [path/to/check_file]
copy

Match input from the stdin with pattern file check_file
$ echo "[some_text]" | FileCheck [path/to/check_file]
copy

Match with the specified custom check prefix (Note: The default prefix is CHECK)
$ echo "[some_text]" | FileCheck --check-prefix=[prefix] [path/to/check_file]
copy

Print good directive pattern matches
$ echo "[some_text]" | FileCheck -v [path/to/check_file]
copy

Input llvm_code.ll into llvm-as, then pipe the output into FileCheck to match
$ llvm-as [path/to/llvm_code.ll] | FileCheck [path/to/check_file]
copy

SYNOPSIS

No standard syntax available.

DESCRIPTION

There is no standard Linux command named filecheck. It does not appear in common distributions like Ubuntu, Fedora, or Debian man pages, nor in coreutils, busybox, or other standard toolsets.

Possible confusions include:

  • file(1): Identifies file types by content.
  • fc-check(1): From fontconfig, validates font files.
  • filefrag(1): Checks ext2/ext3/ext4 file fragmentation.
  • chktex(1): Checks LaTeX files.

If referring to a custom script, package-specific tool (e.g., from AIX or proprietary software), or typo, provide more context. No official man page or synopsis exists for a native filecheck. Searching PATH or "man filecheck" yields no results on standard systems.

Copied to clipboard