10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi,
on ksh
What does the following do?
grep -v "toolbox" $home_oracle/.profile >$home_oracle/.profile.$$ Thanks.
Please use CODE tags as required by forum rules! (3 Replies)
Discussion started by: big123456
3 Replies
2. Shell Programming and Scripting
can anyone share script for how to remove control m character (1 Reply)
Discussion started by: pw227j
1 Replies
3. Shell Programming and Scripting
Hi,
The command - id | awk '{print $1}' - returns the following:
uid=9028(luke)
What do I need to further that awk so that I only have "luke", I want to set this as a variable.
Thanks in advance,
Lukas.
P.S: I've come up with:
USER1=`id | awk F'(' '{print $2}' | awk -F')' '{print... (4 Replies)
Discussion started by: luke222010
4 Replies
4. Shell Programming and Scripting
When editing a file, vi displays a special character as ^L. Can you tell me the escaped character to be used in awk? And can that escaped character be used in a regexp in both sed and awk? (7 Replies)
Discussion started by: dmesserly
7 Replies
5. Shell Programming and Scripting
Hello
I've got a string of text with a number in pence, e.g. 0.52p, I need to remove the 'p' so that it just reads 0.52 without of course removing all the other 'p' characters.
Many thanks (1 Reply)
Discussion started by: mrpugster
1 Replies
6. Shell Programming and Scripting
I'd like to remove (do a pattern or precise replacement - this I can handle in SED using Regex )
---AFTER THE 1ST Occurrence ( i.e. on the 2nd occurrence - from the 2nd to fourth occurance ) of a specific string : type 1
-- After the 1st occurrence of 1 string1 till the 1st occurrence of... (4 Replies)
Discussion started by: sieger007
4 Replies
7. Shell Programming and Scripting
Hi,
Could you please help me in removal of newline chracter present in between the double quotes and replacing it with space.
For example ...
Every field is wrapped with double quotes with comma delimiter, so I need to travese from first double quote occerence to till second double... (7 Replies)
Discussion started by: vsairam
7 Replies
8. Shell Programming and Scripting
I have below line in a unix file, I want to delete one character after "Â".
20091020.Non-Agency CMO Daily Trade Recap Â~V Hybrids
The result should be :
20091020.Non-Agency CMO Daily Trade Recap  Hybrids
i dont want to use "~V" anywhere in the sed command or any other command, just remove... (1 Reply)
Discussion started by: mohsin.quazi
1 Replies
9. Shell Programming and Scripting
I have a script that produces an output containing '/.ssh'.
I am trying to find a way of parsing only this data from a single line, without removing any other special characters contained within the output as a result of the parse.
Any help would be appreciated (6 Replies)
Discussion started by: Raggedranger333
6 Replies
10. Shell Programming and Scripting
Hi,
I am trying to unload file from a database. Which contains few lines with the character below. Rest of the data was unloaded appropriately.
a) What does this below character means?
b) How can i remove it,
I already have sed '/^$/d'
c) Will this effect the file by any means... (4 Replies)
Discussion started by: tostay2003
4 Replies
GTAGS-PARSER(1) General Commands Manual GTAGS-PARSER(1)
NAME
gtags-parser - print cross reference list for gtags.
SYNOPSIS
gtags-parser [-bdenqrstvw] file ...
DESCRIPTION
Gtags-parser print cross reference list for gtags(1) from the specified C, C++, yacc, java, PHP and Assembly source to standard output.
Each line of output contains the object name, the line number which it appears, the file in which it is defined, and a line image separated
by white-space. It's same with the output of ctags(1) with -x option.
Depending upon the options provided to gtags-parser, objects will consist of object definitions, object references and other symbols.
Files whose names end in '.c' or '.h' are assumed to be C source files. Files whose names end in '.c++' '.cc' '.cpp' '.cxx' '.hxx' '.hpp'
'.C' '.H' are assumed to be C++ source files. Files whose names end in '.y' are assumed to be YACC source files. Files whose names end in
'.java' are assumed to be Java source files. Files whose names end in '.php' '.php3' '.phtml' are assumed to be PHP source files. Files
whose names end in '.s' or '.S' are assumed to be Assembly source files. Other files are searched for C style definitions.
Yacc files each have a special tag. yyparse is the start of the second section of the yacc file.
This command is the default parser of GLOBAL source code tag system.
OPTIONS
The following options are available:
-b, --begin-block
Force level 1 block to begin when reach the left brace at the first column. (C only)
-e, --end-block
Force level 1 block to end when reach the right brace at the first column. (C only)
-n, --no-tags
Suppress output of tags. It is useful to use with -w option.
-q, --quiet
Quiet mode.
-r, --reference
Locate object references instead of object definitions. 'GTAGS' is needed at the current directory. (C, C++ and Java source only)
By default, locate object definitions.
-s, --symbol
Collect symbols other than object definitions and references. By default, locate object definitions.
-v, --verbose
Verbose mode.
-w, --warning
Print warning message.
--langmap=map
Language mapping. Each comma-separated map consists of the language name, a colon, and a list of file extensions. Default mapping
is 'c:.c.h,yacc:.y,asm:.s.S,java:.java,cpp:.c++.cc.cpp.cxx.hxx.hpp.C.H,php:.php.php3.phtml'.
The -r and -s options override each other; the last one specified determines the method used.
ENVIRONMENT
The following environment variables affect the execution of gtags-parser:
GTAGSFORCECPP
If this variable is set, each file whose suffix is 'h' is treated as a C++ source file.
DIAGNOSTICS
Gtags-parser exits with a non 0 value if an error occurred, 0 otherwise. Duplicate objects are not considered errors.
SEE ALSO
global(1), gtags(1), htags(1).
GNU GLOBAL source code tag system
(http://www.gnu.org/software/global/).
BUG
Gtags-parser relies on the input being well formed, and any syntactical errors will completely confuse it.
AUTHOR
Tama Communications Corporation.
HISTORY
The gtags-parser(gctags) command appeared in FreeBSD 2.2.2.
GNU Project March 2008 GTAGS-PARSER(1)