The cscut Command Manual Page

NAME
SYNOPSIS
DESCRIPTION
EXAMPLE
SEE ALSO
AUTHOR

NAME

cscut - Extract portions of a CScout processing script

SYNOPSIS

cscut [-b] [-e] [-F file-list | -f file | -p project] cscout-file

DESCRIPTION

The cscut command-line tool extracts specific portions of a CScout processing script. It provides a flexible way to select parts of the CScout processing script based on files or projects.

The following options are available:

-b

Output from the file’s beginning until the specified point.

-e

Output from the specified point to the end of the file.

-F file-list

Output a script to process only the files specified in file-list, where file-list is a file containing a list of filenames.

-f file

Output a script to process only the specified file.

-p project

Output a script to process only the specified project.

The last argument, cscout-file, specifies the CScout processing script to be processed.

EXAMPLE

Below are some typical use cases for cscut.

Extract a script to process the file x86.cs:

cscut -f /home/dds/src/linux/arch/x86/kvm/x86.c make.cs >x86.cs

Extract a script to process the files listed in file-list.txt:

cscut -F file-list.txt make.cs >files.cs

Extract a script to process only the project .tmp_vmlinux3:

cscut -p /home/dds/src/linux/.tmp_vmlinux3 >linux.cs

Extract a script to process from the file export.c and onward:

cscut -f /home/dds/src/linux/fs/ocfs2/export.c linux.cs >ocfs2-export.cs

SEE ALSO

cscout(1), cssplit(1), csmake(1)

AUTHOR

(C) Copyright 2024 Diomidis Spinellis.