02-09-2009
This one is the right one (forgot leading / in the previous post) :
sed -e "s-/\*.*\*/-/\* <comments removed> \*/-g" $FILENAME
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My String variable is holding value as - abc"def
I want to replce " with \"
I tried with awk :
echo $var | awk '{gsub(/"/,"\"");print}'
and I am getting an error, `)' is not expected. (1 Reply)
Discussion started by: videsh77
1 Replies
2. Shell Programming and Scripting
Hi guys,
i have a pattern that i am searching in a file and i want to extract some of this pattern
...
module TS1N65ULPA96X32M4 (
....
i want to extract only TS1N65ULPA96X32M4 part and i do the following
sed 's/module \(x*\).*/\1/' name_of_file
but this is not quite right.
could... (6 Replies)
Discussion started by: ROOZ
6 Replies
3. Shell Programming and Scripting
Hi all
I need to replace all characters in a file except for the matching pattern
eg.
I need to replace all character with '*' except for the pattern "abc"
Input
"sdfhgsdf abc ##%$#abcsdfh sdfjkfff"
Output
"******abc******abc*************"
Request for single liner solution (1 Reply)
Discussion started by: raghav288
1 Replies
4. Shell Programming and Scripting
ip1="xxx"
ip2="bbb"
sed 's/$ip1/$ip2/g' (3 Replies)
Discussion started by: shivarajM
3 Replies
5. Shell Programming and Scripting
Hi,
I have a file which contains the below data. I want to change pattern to correct format.
# tail -1 test.log | awk '{print $8}'
10/09/23
#
I want the format to be 23/09/10 (5 Replies)
Discussion started by: nareshkumar522
5 Replies
6. Shell Programming and Scripting
Hi,
I have a file which contains the below data. I want to search for a pattern server="http://bushby.mis.amat.com:12440" and remove it from the file.
Please let me know how can i do this.
<Object name="reverse-proxy-/endeavour/">
ObjectType fn="http-client-config" timeout="1800"... (6 Replies)
Discussion started by: Krrishv
6 Replies
7. Shell Programming and Scripting
hi,
I want to do replacing of some pattern by using sed.
pattern : " white space / to white space /
please help
-bhrat (3 Replies)
Discussion started by: bhrat kapoor
3 Replies
8. Shell Programming and Scripting
Hi All
I am having pipe seperated inputs like
Adam|PeteR|Josh|PEter
Nick|Rave|Simon|Paul
Steve|smith|PETER|Josh
Andrew|Daniel|StAlin|peter
Rick|PETer|ADam|RAVE
i want to repleace all the occurrence of peter (in any case pattern PeteR,PEter,PETER,peter,PETer) with Peter so that output... (5 Replies)
Discussion started by: sudeep.id
5 Replies
9. Shell Programming and Scripting
i have little challenge, help me out.i have a file where i have a value declared and and i have to replace the value when called. for example i have the value for abc and ccc. now i have to substitute the value of
value abc and ccc in the place of them.
Input File:
go to &abc=ddd;
if... (16 Replies)
Discussion started by: saaisiva
16 Replies
10. Shell Programming and Scripting
Hi,
I have a text file with lots of text (strings,numbers,special characters etc). I am trying to replace any occurrence of these strings :
90%
91%
92%
....
100%
I want to replace them with :
"90%"
"91%"
"92%"
....
"100%"
I am now using 10 sed commands for replacement but I... (12 Replies)
Discussion started by: ctrld
12 Replies
LEARN ABOUT DEBIAN
g-ir-compiler
g-ir-compiler(1) General Commands Manual g-ir-compiler(1)
NAME
g-ir-compiler - typelib compiler.
SYNOPSIS
g-ir-compiler [OPTION...] GIRFILE
DESCRIPTION
g-ir-compiler converts one or more GIR files into one or more typelib. It can either emit the raw typelib blob (default behavior) or C
code (--code). The output will be written to standard output unless the --output is specified.
OPTIONS
---help
Show help options
---code
Emit C code which is suitable for including in a shared library instead of a raw typelib.
---output=FILENAME
Save the resulting output in FILENAME.
---verbose
Show verbose messages
---debug
Show debug messages
---no-init
Do not include an initialization snippet to register the typelib in the respository. This can only be used if --code is also speci-
fied.
---includedir=DIRECTORY
Adds a directory which will be used to find includes inside the GIR format.
---module=MODULE
FIXME
---shared-library=FILENAME
Specifies the shared library where the symbols in the typelib can be found. The name of the library should not contain the leading
lib prefix nor the ending shared library suffix.
BUGS Report bugs at http://bugzilla.gnome.org/ in the glib product and introspection component.
HOMEPAGE and CONTACT
http://live.gnome.org/GObjectIntrospection
AUTHORS
Mattias Clasen
g-ir-compiler(1)