ocs(1) General Commands Manual ocs(1)NAME
ocs - creates and maintains the database for cscope on a recursive directory set
ocs [-x] [-f] [-q] [-u]
This manual page briefly documents ocs , a shell script wrapper that automates the creation and maintenance of a cscope(1) database on a
recursive set of directories. Under normal circumstances, ocs generates a cscope database on a recursive group of directories starting from
the current working directory, before launching cscope(1) in interactive mode.
OPTIONS -x Enable debugging.
-f Force. Do not ask about regenerating 'TMP' lists (lists generated by ocs ), just do it; Allow the regeneration of 'CSD' (lists gen-
erated by cscope(1) ) lists.
-q Tell cscope to build a fast reverse index. Database disk space usage is doubled, but searching speed is increased.
-u Request that the database be updated or regenerated.
If this is an executable shell script, it will be included in the body of ocs in order to override intenal filenames and other
options. See the comments at the top of /usr/bin/ocs for more information.
SEE ALSO cscope(1), /usr/bin/ocs.
This manpage originally prepared by Nick Rusnov <email@example.com> for the Debian Project.
The Debian Project June 2001 ocs(1)
Check Out this Related Man Page
cscope-indexer(1) General Commands Manual cscope-indexer(1)NAME
cscope-indexer - Script to index files for cscope
cscope-indexer [-v] [-f database_file] [-i list_file] [-l] [-r]
This script generates a list of files to index (cscope.out), which is then (optionally) used to generate a cscope database. You can use
this script to just build a list of files, or it can be used to build a list and database. This script is not used to just build a data-
base (skipping the list of files step), as this can be simply done by just calling "cscope -b".
Normally, cscope will do its own indexing, but this script can be used to force indexing. This is useful if you need to recurse into sub-
directories, or have many files to index (you can run this script from a cron job, during the night). It is especially useful for large
projects, which can contstantly have source files added and deleted; by using this script, the changing sources files are automatically
Currently, any paths containing "/CVS/" or "/RCS/" are stripped out (ignored).
OPTIONS -f database_file
Specifies the cscope database file (default: cscope.out).
Specifies the name of the file into which the list of files to index is placed (default: cscope.files).
-l Suppress the generation/updating of the cscope database file. Only a list of files is generated.
-r Recurse into subdirectories to locate files to index. Without this option, only the current directory is searched.
-v Be verbose. Output simple progress messages.
SEE ALSO cscope(1)AUTHOR
This manual page was written for the Debian GNU/Linux system by Robert Lemmen <firstname.lastname@example.org> (but may be used by others, of
Script to index files for cscope 30. December 2002 cscope-indexer(1)
I want to retrieve the directory in the shell script that is using maximum space on the disk.I was using du command but it displays all the directories that are using the space on the disk.How can retrieve the only directory which uses the maximum space on the disk??
Thanks in advance.
... (4 Replies)
i'm playing around with "ls" and "find" and am trying to get a print out of directories, with full path, (recursive) and their ownership.... without files or package contents (Mac .pkg or .mpkg files). I'd like it simply displayed without much/any extraneous info.
everything i've tried, and... (5 Replies)
I need to count the number of lines in all the files under a directory (several levels deep). I am feeling extremely dumb, but I don't know how to do that. Needless to say, I am not a shell script wiz... Any advice?
thanks in advance! (13 Replies)
I am writing a shell script that finds all files named <myFile> in a directory <dir> or any of its subdirectories, recursively. I also need to take care of symbolic links that may form cycles, to avoid infinite loops.
I started writing the code but got stuck. I thought using recursion... (7 Replies)
How does recursive scp work? By recursive I think it should follow all the directories and copy all the matching files. It doesn't work like what I would expect. Here is a simple example that shows scp -r does not go into the subdirectories "one" and "two":
one two zero.txt
$ ls one... (6 Replies)
This is my first ever post to any forum so, dont let this go in vain...........:)
Here is the scenario........
I have logged into the unix where oracle_sid is initialized for some X database in the .profile.
I have a unix script where some sql query which fetches data from X... (3 Replies)
I have a file that needs to be cleaned up. Here is the file:
I need the o/p to be:
Project2 (7 Replies)
Hello there everyone.
I have installed OCSInventory on 46 of my RHEL5 servers. But when the process is running after some time it makes this processes exp:
After a ps -ef |grep ocs here is what I get :
root 3073 28258 0 15:51 ? 00:00:00 <defunct>
root 6459 17165 0... (8 Replies)
I am trying to create a shell script similar to ls, but which only lists directories. I have the first half working (no argument version), but trying to make it accept an argument, I am failing. My logic is sound I think, but I'm missing something on the syntax, I'm guessing in the bolded line? ... (9 Replies)
I am new in this forum and need your help as I am totally confused :confused:
I read a lot of threads and tried to search a lot but did not get the exact answer to my question.
I just want a simple (content wise may be long) shell script to create oracle database.
In detail:... (5 Replies)
i am very new with linux shell script. my colleague gave a portion of this script, it backups all of your database and there is a option that selects a database that u do not want to include in your backup. what i want is the other way around, i want to select the databases that i only want... (3 Replies)
I have a batch of mkv video files I would like to transcode to a more compressed format. After spending a significant amount of time experimenting with various parameters I think I have found the handbrake settings that give the best compromise. I now want to construct a simple bash script... (4 Replies)
About 10 years ago I got into K shell scripting in a big way (for a beginner). I absolutely loved it and wrote a number of database maintenance scripts that, while basic, worked extremely well.
Somehow, somewhere I picked up the style of scripting that was very similar to when I was doing Cobol... (4 Replies)