02-16-2010
Post your code so we can see it
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello
I need to make a regex.
I have a file myfile, in this file I want to find a number situated after PAYSLOT=
Before PAYSLOT is the begining of line (I guess ^) and
after the number is the end of line (I guess $) .
I want to echo this number (I guess $1) and put it in my variable payslot.... (5 Replies)
Discussion started by: pppswing
5 Replies
2. Shell Programming and Scripting
I would like to search strings composed by only one type of charachter for example
only strings composed by the charachter 'b'
is it right?
$egrep '\<(b+)+\>' filename
Could be there some side effects?
Regards. (1 Reply)
Discussion started by: and77
1 Replies
3. Shell Programming and Scripting
Hi Guys,
I'm trying to write a script that will strip out a session id from an html webpage.
I am missing something on the regex for parsing a variable.
I am trying to get just the alpha-numeric value for scriptSessionId from this text:
<script type="text/javascript">if(!JAWR){var JAWR =... (2 Replies)
Discussion started by: tank126
2 Replies
4. Shell Programming and Scripting
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
5. UNIX for Advanced & Expert Users
Can someone tell me what is going with this expression :%s/<C-V><C-M>/.
Is there a way to get a more useful message if the carriage return has been deleted?
http://objectmix.com/editors/149245-fixing-dos-line-endings-within-vim.html#post516826
Why does this expression work for... (1 Reply)
Discussion started by: cokedude
1 Replies
6. Shell Programming and Scripting
hello, i'm quite new to regex and Perl in general. What i need is a regex that does this trasformatiuon:
input :
S45020:97,0;
S45020:45,1;
output :
crrout:97;
errout:45;
there are some other combination but they're useless for the comprehension of the regex i need
I need it for some... (2 Replies)
Discussion started by: perdidohate
2 Replies
7. UNIX for Dummies Questions & Answers
I have a file of protein sequences with headers (my source file). Based on a list of IDs (which are included in some of the headers), I'd like to print out only the specified sequences, with only the ID as header.
In other words, I'd like to search source.txt for the terms in IDs.txt, and print... (3 Replies)
Discussion started by: pathunkathunk
3 Replies
8. Shell Programming and Scripting
The sample file:
dept1: user1,user2,user3
dept2: user4,user5,user6
dept3: user7,user8,user9
I want to match by '/^dept2.*/' but don't want to have substring 'dept2:' in output. How to compose such regex? (8 Replies)
Discussion started by: urello
8 Replies
9. Shell Programming and Scripting
I am not a big expert in regex and have just little understanding of that language.
Could you help me to understand the regular Perl expression:
^(?!if\b|else\b|while\b|)(?:+?\s+){1,6}(+\s*)\(*\) *?(?:^*;?+){0,10}\{
------
This is regex to select functions from a C/C++ source and defined in... (2 Replies)
Discussion started by: alex_5161
2 Replies
10. Shell Programming and Scripting
I'm trying to get some exclusions into our sendmail regular expression for the K command. The following configuration & regex works:
LOCAL_CONFIG
#
Kcheckaddress regex -a@MATCH
+<@+?\.++?\.(us|info|to|br|bid|cn|ru)
LOCAL_RULESETS
SLocal_check_mail
# check address against various regex... (0 Replies)
Discussion started by: RobbieTheK
0 Replies
LEARN ABOUT DEBIAN
importcmd
ImportCmd(3U) InterViews Reference Manual ImportCmd(3U)
NAME
ImportCmd - import a graphical component
SYNOPSIS
#include <Unidraw/Commands/import.h>
DESCRIPTION
ImportCmd imports a graphical image from a file into the drawing being edited. ImportCmd supports the following file formats: TIFF; Post-
Script generated by pgmtops and ppmtops; X bitmap format; and Unidraw format.
PUBLIC OPERATIONS
ImportCmd(ControlInfo*, FileChooser* = nil)
ImportCmd(Editor* = nil, FileChooser* = nil)
Create a new ImportCmd instance, optionally supplying the FileChooser that will prompt the user to specify the file to import.
After the user specifies the file, ImportCmd reads it, creates an appropriate graphical component, and pastes it into the component
being edited in the enclosing editor.
static GraphicComp* Import(const char*)
static GraphicComp* TIFF_Image(const char*)
static GraphicComp* PGM_Image(const char*)
static GraphicComp* PPM_Image(const char*)
static GraphicComp* XBitmap_Image(const char*)
Operations for reading data from various file formats and creating an appropriate graphical component. TIFF_Image, PGM_Image,
PPM_Image, and XBitmap_Image assume that the specified file is in the corresponding format. Import is more general: it determines
the format from the file and then calls one of the other functions.
PROTECTED OPERATIONS
void Init(FileChooser*)
Specify the FileChooser instance (stored in the _dialog protected member) explicitly. This operation does not delete the existing
instance, if any.
GraphicComp* PostDialog()
Post the FileChooser and return the graphical component created from the user-specified file, if any.
SEE ALSO
Catalog(3U), Command(3U), FileChooser(3I), GraphicComp(3U), bitmap(1), pgmtops(1), ppmtops(1)
Unidraw 10 August 1991 ImportCmd(3U)