Sponsored Content
Full Discussion: Question on awk/sed/regex
Top Forums Shell Programming and Scripting Question on awk/sed/regex Post 302703411 by deadyetagain on Wednesday 19th of September 2012 05:21:41 PM
Old 09-19-2012
Hi Thank you so much
but this INCLUDES the | at the end
how do i exclude the | as well?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sed, grep, awk, regex -- extracting a matched substring from a file/string

Ok, I'm stumped and can't seem to find relevant info. (I'm not even sure, I might have asked something similar before.): I'm trying to use shell scripting/UNIX commands to extract URLs from a fairly large web page, with a view to ultimately wrapping this in PHP with exec() and including the... (2 Replies)
Discussion started by: ropers
2 Replies

2. Shell Programming and Scripting

Awk Sed question

i have to search direcotry with a Min or Max size and but with a standard find.... it gives me the size of the i-node of the directory. A friend told me to use awk/sed command to search directories. he also gave me this command: find -type d -exec du '{}' \; | awk -v sz=10 '{if... (0 Replies)
Discussion started by: AkiraSama
0 Replies

3. Shell Programming and Scripting

sed and awk question

hello, I have this in a file server_name=DB1 hostname=db1 I want to change hostname value to `hostname`. Any idea? and server_name value to toUPPER (`hostname`). Any idea? thanks (3 Replies)
Discussion started by: melanie_pfefer
3 Replies

4. Shell Programming and Scripting

sed to awk (regex pattern) how?

Hello, I am trying to covert a for statement into a single awk script and I've got everything but one part. I also need to execute an external script when "not found", how can I do that ? for TXT in `find debugme -name "*.txt"` ;do FPATH=`echo $TXT | sed 's/\(.*\)\/\(.*\)/\1/'` how... (7 Replies)
Discussion started by: TehOne
7 Replies

5. Shell Programming and Scripting

Selecting a part of the text (regex pattern, awk, sed)

Hello, let's start by giving you guys a few examples of the text: "READ /TEXT123/ABC123" "READ /TEXT123/ABC123/" "READ TEXT123/ABC123" "READ TEXT123/ABC123/" "READ TEXT123/TEXT456/ABC123" "READ /TEXT123/TEXT456/ABC123" "READ /TEXT123/TEXT456/ABC123/" TEXT and ABC can be and I... (5 Replies)
Discussion started by: TehOne
5 Replies

6. Shell Programming and Scripting

Converting perl regex to sed regex

I am having trouble parsing rpm filenames in a shell script.. I found a snippet of perl code that will perform the task but I really don't have time to rewrite the entire script in perl. I cannot for the life of me convert this code into something sed-friendly: if ($rpm =~ /(*)-(*)-(*)\.(.*)/)... (1 Reply)
Discussion started by: suntzu
1 Replies

7. Shell Programming and Scripting

regex, awk, grep question "how to"

I've been working on this for 2 days and I'm not getting far. It is time to turn to you guys. With the data below, I am trying to create a file that looks like this: I'd like to use some form of egrep I think. AY#box#P04prod_to_contingency s AY#cmd#P04dump_cont_db s AY#cmd#P04get_on_ice_job s... (2 Replies)
Discussion started by: rawbi01
2 Replies

8. Shell Programming and Scripting

To print lines between 2 timestamps using awk|sed and regex

Hi, I am using the following code to fetch lines that are generated in last 1 hr . Hence, I am using date function to calculate -last 1 hr & the current hr and then somehow use awk (or sed-if someone could guide me better) with some regex pattern. dt_1=`date +%h" "%d", "%Y\ %l -d "1 hour... (10 Replies)
Discussion started by: sarah-alikhan31
10 Replies

9. Shell Programming and Scripting

REGEX help required and some sed/awk help as well

Hi guys, I am coding a bash script that makes use of php scripts to pull URL's from a website. These url links will have numbers in them like 0.2.3 I want to make a regex that will yield me such numbers if I use a command like preg_grep. Question1: I need a regex that will tell my preg_grep... (2 Replies)
Discussion started by: mojoman
2 Replies

10. UNIX for Beginners Questions & Answers

Sed/awk to delete a regex between range of lines

Hi Guys I am looking for a solution to one problem to remove parentheses in a range of lines. Input file module bist_logic_inst(a, ab , dhd, dhdh , djdj, hdh, djjd, jdj, dhd, dhp, dk ); input a; input ab; input dhd; input djdj; input dhd; output hdh; output djjd; output jdj;... (5 Replies)
Discussion started by: kshitij
5 Replies
PYCALLGRAPH(1)							   User Commands						    PYCALLGRAPH(1)

NAME
pycallgraph - command-line interface to pycallgraph SYNOPSIS
pycallgraph [OPTION]... pythonfile DESCRIPTION
This manual page documents pycallgraph. This manual page was originally written for the Debian distribution. pycallgraph is a program that creates call graphs for Python programs. pycallgraph is the command line interface to pycallgraph's make_dot_graph method, which generates a call graph and stores it as an image in the specified image file. -o, --output-file the file name of the output image. Default: pycallgraph.png -f, --image-format the image format of imagefile. Default: png -q, --quiet Suppress status output to the console. -t, --tool the tool from GraphViz to use. Default: dot -s, --stdlib include standard library functions in the trace. Default: False -i, --include wildcard pattern of modules to include in the output. You can have multiple include arguments -e, --exclude wildcard pattern of modules to exclude in the output. You can have multiple exclude arguments -d, --max-depth maximum stack depth to trace --exclude-timing wildcard pattern of modules to exclude in time measurement. You can have multiple exclude arguments --include-timing wildcard pattern of modules to include in time measurement. You can have multiple include arguments EXAMPLES
Create a call graph called pycallgraph.png on myprogram.py: pycallgraph ./myprogram.py Create a call graph of a standard Python installation script with command line parameters: pycallgraph --output-file=setup.png -- setup.py --dry-run install Only see the module "distutils" within the execution of easy_install: pycallgraph --include=distutils.* /usr/bin/easy_install AUTHORS
pycallgraph and pycallgraph were written by Gerald Kaszuba <pycallgraph@slowchop.com>. This manual page was originally written by Jan Alonzo <jmalonzo@unpluggable.com>, for the Debian GNU/Linux system. pycallgraph version 0.5.1 2008-07-08 PYCALLGRAPH(1)
All times are GMT -4. The time now is 07:34 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy