Need Help On REG EXP in unix

 
Thread Tools Search this Thread
Homework and Emergencies Emergency UNIX and Linux Support Need Help On REG EXP in unix
# 8  
Old 02-17-2012
Code:
 
$ nawk '/\<target/ , /\<\/target>/' input.txt
<target name ="UpgradePrimaryBox" depends ="configureBox1">
<echo> Finished Upgrading Primary Box </echo>
</target>

Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Bash script reg-exp , replace , open and write

Hi All I am a new in scripting language and I would like help for you guys I would like to create a file named constant.h and search into all files *.m in specific directory for a reg-exp @"LBL_]+" exp: @"LBL_75847" , and write those matchs to constant.h if there are not written (no... (15 Replies)
Discussion started by: molwiko
15 Replies

2. Shell Programming and Scripting

perl reg-exp

$var1="LEN"; $VAR2="CODLENTT"; now, var2 contains var1(LEN).How do i check this in perl.... whether one string is a part of another..? if (<logic>) { my operation; } what'd be the logic.. (4 Replies)
Discussion started by: vijay_0209
4 Replies

3. Shell Programming and Scripting

Perl reg exp

Hi, I am using the following piece of code for extracting some data from in between some tags ... $text =~ /<TAG1>(.*)<\/TAG1>.*<TAG2>(.*)<\/TAG2>.*<TAG3>(.*)<\/TAG4>.*<TAG5>(.*)<\/TAG5>/; $tag1=$1; print "\n$tag1"; But I am getting an error like Use of uninitialized value in... (1 Reply)
Discussion started by: King Nothing
1 Replies

4. UNIX for Dummies Questions & Answers

extract a part of a path like (input: /etc/exp/home/bin ====> output: exp)

Hi, I need to make some extraction . with the following input to get the right output. input: /etc/exp/home/bin ====> output: exp and input: aex1234 ===> output: ex Thanks for your help, (4 Replies)
Discussion started by: yeclota
4 Replies

5. Shell Programming and Scripting

reg exp for sed

$ cat file.txt asd <AA>dev <LL>def <RR>sha This works for me: $ sed -r 's/^ .*<LL>def/\t<LL>my/' file.txt asd <AA>dev <LL>my <RR>sha But, this does not work for me: $ sed -r 's/^\s+<LL>def/\t<LL>my/' file.txt asd ... (1 Reply)
Discussion started by: demoprog
1 Replies

6. Shell Programming and Scripting

reg exp question

Hi, Should be a difference between ']]*' and ']+' ? I use them in bash with sed and grep. Thanks (1 Reply)
Discussion started by: ynir
1 Replies

7. Shell Programming and Scripting

usage...sed/awk/reg-exp ..in shell scripting

in shell scripting there is extensive usage of i> regular expression ii>sed iii>awk can anyone tell me the suitable contexts ...i mean which one is suitable for what kind of operation. like the reg-exp and sed seems to be doing the same job..i.e pattern matching (1 Reply)
Discussion started by: mobydick
1 Replies

8. Shell Programming and Scripting

Using reg. exp. variable in AWK??

Any idea please: How to pass a reg. exp. variable to awk call in a shell??? Thank u #!/bin/sh reg_exp=name awk '/reg_exp/{ print; }' $1 (5 Replies)
Discussion started by: andy2000
5 Replies
Login or Register to Ask a Question
tapset::stap_staticmarkers(3stap)										 tapset::stap_staticmarkers(3stap)

NAME
tapset::stap_staticmarkers - systemtap stap_staticmarkers tapset DESCRIPTION
stap.pass0 Starting stap pass0 (parsing command line arguments) See probe::stap.pass0(3stap) for details. stap.pass0.end Finished stap pass0 (parsing command line arguments) See probe::stap.pass0.end(3stap) for details. stap.pass1a Starting stap pass1 (parsing user script) See probe::stap.pass1a(3stap) for details. stap.pass1b Starting stap pass1 (parsing library scripts) See probe::stap.pass1b(3stap) for details. stap.pass1.end Finished stap pass1 (parsing scripts) See probe::stap.pass1.end(3stap) for details. stap.pass2 Starting stap pass2 (elaboration) See probe::stap.pass2(3stap) for details. stap.pass2.end Finished stap pass2 (elaboration) See probe::stap.pass2.end(3stap) for details. stap.pass3 Starting stap pass3 (translation to C) See probe::stap.pass3(3stap) for details. stap.pass3.end Finished stap pass3 (translation to C) See probe::stap.pass3.end(3stap) for details. stap.pass4 Starting stap pass4 (compile C code into kernel module) See probe::stap.pass4(3stap) for details. stap.pass4.end Finished stap pass4 (compile C code into kernel module) See probe::stap.pass4.end(3stap) for details. stap.pass5 Starting stap pass5 (running the instrumentation) See probe::stap.pass5(3stap) for details. stap.pass5.end Finished stap pass5 (running the instrumentation) See probe::stap.pass5.end(3stap) for details. stap.pass6 Starting stap pass6 (cleanup) See probe::stap.pass6(3stap) for details. stap.pass6.end Finished stap pass6 (cleanup) See probe::stap.pass6.end(3stap) for details. stap.cache_clean Removing file from stap cache See probe::stap.cache_clean(3stap) for details. stap.cache_add_mod Adding kernel instrumentation module to cache See probe::stap.cache_add_mod(3stap) for details. stap.cache_add_src Adding C code translation to cache See probe::stap.cache_add_src(3stap) for details. stap.cache_add_nss Add NSS (Network Security Services) information to cache See probe::stap.cache_add_nss(3stap) for details. stap.cache_get Found item in stap cache See probe::stap.cache_get(3stap) for details. stap.system Starting a command from stap See probe::stap.system(3stap) for details. stap.system.spawn stap spawned new process See probe::stap.system.spawn(3stap) for details. stap.system.return Finished a command from stap See probe::stap.system.return(3stap) for details. staprun.insert_module Inserting SystemTap instrumentation module See probe::staprun.insert_module(3stap) for details. staprun.remove_module Removing SystemTap instrumentation module See probe::staprun.remove_module(3stap) for details. staprun.send_control_message Sending a control message See probe::staprun.send_control_message(3stap) for details. stapio.receive_control_message Received a control message See probe::stapio.receive_control_message(3stap) for details. SEE ALSO
probe::stap.pass0(3stap), probe::stap.pass0.end(3stap), probe::stap.pass1a(3stap), probe::stap.pass1b(3stap), probe::stap.pass1.end(3stap), probe::stap.pass2(3stap), probe::stap.pass2.end(3stap), probe::stap.pass3(3stap), probe::stap.pass3.end(3stap), probe::stap.pass4(3stap), probe::stap.pass4.end(3stap), probe::stap.pass5(3stap), probe::stap.pass5.end(3stap), probe::stap.pass6(3stap), probe::stap.pass6.end(3stap), probe::stap.cache_clean(3stap), probe::stap.cache_add_mod(3stap), probe::stap.cache_add_src(3stap), probe::stap.cache_add_nss(3stap), probe::stap.cache_get(3stap), probe::stap.system(3stap), probe::stap.system.spawn(3stap), probe::stap.system.return(3stap), probe::staprun.insert_module(3stap), probe::staprun.remove_module(3stap), probe::staprun.send_control_message(3stap), probe::stapio.receive_control_message(3stap), stap(1), stapprobes(3stap) IBM
--- tapset::stap_staticmarkers(3stap)