solaris% perl -nle '/SUESTART (.*)SUEEND/ && print $1' rules.txt
AG Amndmnt Client WebRequest DNU [1-7661VJ]
AG Amndmnt Client WebRequest DNU [1-7661VJ]
AG CRM SR - Email/SR Email Surveys [1-6NUS6A]
AG CRM SR - Email/SR Email Surveys [1-6NUS6A]
AG CRM SR - ServiceFailure/Complaint/SurveyResponse [1-67MD2A]
AG CRM SR - ServiceFailure/Complaint/SurveyResponse [1-67MD2A]
AG CRM SR - Query [1-67MD22]
AG CRM SR - Query [1-67MD22]
AG Amndmnt Client WebRequest Fail [1-7661VV]
AG Amndmnt Client WebRequest Fail [1-7661VV]
AG SR Assignment - Unit Trust - Private Client [1-6NUS8M]
AG SR Assignment - Unit Trust - Private Client [1-6NUS8M]
AG SR Assignment - Unit Trust - Bulk - Private Client [1-6NUS86]
I want to collect the characters from 1-10 and 20-30 from each line of the file and take them in a file in the following format.Can someone help me with this :
string1,string2
string1,string2
string1,string2
:
:
:
: (7 Replies)
Hi,
I have a sql file and i need to extract the table names used in the sql file using a unix script. If i can extract the lines between the keywords 'FROM' and 'WHERE' in the file, my job is done. can somebody tell me how to do this using a shell script. If u can just let me know, how to... (2 Replies)
i have textfiles that contain a series of lines that look like this:
string0 .................................................... column3a column4a
string1**384y0439 ..................................... column3b column4b... (2 Replies)
Hello all,
I am being dumb with this and I know there is a simple solution.
I have a file with the follwing lines
bc stuff (more)...............123
bc stuffagain (moretoo)............0
bc stuffyetagain (morehere)......34
failed L3 thing..............1
failed this... (2 Replies)
There are a lot of ways to extract text from between two strings, but what if those strings occur multiple times and you only want the text from the first two strings? I can't seem to find anything to work here. I'm using sed to process the text after it's extracted, so I prefer a sed answer, but... (4 Replies)
Hi,
I've looked at a few existing posts on this, but they don't seem to work for my inputs.
I have a text file where I want to extract all the text between two strings, every time that occurs.
Eg my input file is
Anna said that she would fetch the bucket.
Anna and Ben moved the bucket.... (9 Replies)
Hi All,
I have a file whose common patter is like this:
.I 1
.U
87049087
.S
Some text here too
.M
This is a text
.T
Some another text here
.P
Name of the book
.W
Some lines of more text. This text needs to be extracted.
.A
more text goes here too
.I 2 (2 Replies)
Hi Team -
I hope everyone has been well!
I export a file from one of our source systems that gives me more information than I need. The way the file outputs, I need to extract certain strings at different positions on the file and echo them to another file.
I can do this in batch easily,... (2 Replies)
Hi everyone.
I am very new in bash scripting (and scripting at all).
I've got lines like these:
-rw-r--r-- 1 setub 1049089 27M mars 13 2017 arch_amiel_038g_f016r.tif
-rw-r--r-- 1 setub 1049089 584K juin 9 2008 arch_amiel_composition.jpgI wish to extract 2 string types so that I can... (4 Replies)
Discussion started by: setub
4 Replies
LEARN ABOUT DEBIAN
rt::client::rest::user
RT::Client::REST::User(3pm) User Contributed Perl Documentation RT::Client::REST::User(3pm)NAME
RT::Client::REST::User -- user object representation.
SYNOPSIS
my $rt = RT::Client::REST->new(server => $ENV{RTSERVER});
my $user = RT::Client::REST::User->new(
rt => $rt,
id => $id,
)->retrieve;
DESCRIPTION
RT::Client::REST::User is based on RT::Client::REST::Object. The representation allows one to retrieve, edit, comment on, and create users
in RT.
Note: RT currently does not allow REST client to search users.
ATTRIBUTES
id
For retrieval, you can specify either the numeric ID of the user or his username. After the retrieval, however, this attribute will be
set to the numeric id.
name
This is the username of the user.
password
User's password. Reading it will only give you a bunch of stars (what else would you expect?).
privileged
Can the user have special rights?
disabled
Can this user access RT?
email_address
E-mail address of the user, EmailAddress.
real_name
Real name of the user, RealName.
gecos
Gecos.
comments
Comments about this user.
nickname
Nickname of this user.
lang
Language for this user.
organization
address_one
First line of the street address, Address1.
address_two
Second line of the street address, Address2.
city
City segment of user's address.
zip
ZIP or Postal code segment of user's address.
country
Country segment of user's address.
home_phone
User's home phone number, HomePhone.
work_phone
User's work phone number, WorkPhone.
cell_phone
User's cell phone number, MobilePhone.
pager
User's pager number, PagerPhone.
contactinfo
Contact info (Extra Info field).
signature
Signature for the user.
DB METHODS
For full explanation of these, please see "DB METHODS" in RT::Client::REST::Object documentation.
retrieve
Retrieve RT user from database.
store
Create or update the user.
search
Currently RT does not allow REST clients to search users.
INTERNAL METHODS
rt_type
Returns 'user'.
SEE ALSO
RT::Client::REST, RT::Client::REST::Object, RT::Client::REST::SearchResult.
AUTHOR
Dmitri Tikhonov <dtikhonov@yahoo.com>
LICENSE
Perl license with the exception of RT::Client::REST, which is GPLed.
perl v5.14.2 2012-01-20 RT::Client::REST::User(3pm)