cscut - -Extract portions of a CScout processing script
- -cscut -[-e] [-F file-list | -f -file | -p project] -cscout-file
- -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:
- -- |
-
-
- -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.
- -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- - -
cscout(1), -cssplit(1), csmake(1)
- -(C) Copyright -2024 Diomidis Spinellis.
-cssplit - -Split a CScout processing script into smaller scripts
- -cssplit -N
- -The -cssplit command-line program is a filter that splits -a CScout processing script into N smaller -scripts for parallel or distributed processing. Each output -script is named using a zero-padded sequence, starting with -file-0001.cs.
- -The input is -read from the standard input, and the output files are -written to the current working directory.
- -This tool is -useful for distributing the workload of a large -CScout analysis across multiple scripts for -efficiency or manageability.
- -- |
-
-
- N |
-- |
-
-
- The number of output scripts to -generate. The input processing script is divided into -N approximately equal parts. |
Each output -script contains the appropriate subset of the input commands -to ensure no loss of information during the split. Currently -cssplit supports only processing scripts containing a -single project.
- -To split an -input processing script into 4 smaller scripts:
- -cssplit 4 <make.cs- - -
This will create -the following files in the current directory:
- -file-0001.cs -file-0002.cs -file-0003.cs -file-0004.cs- - -
Each file -contains a portion of the original processing script.
- -cscout(1), -cscut(1), csmake(1)
- -(C) Copyright -2024 Diomidis Spinellis.
-