10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am looking for a solution to grep for minimum 5 or 6 characters in a file, otherwise ignore.
Example
1121221222
2212121211
1221122122
2121222222
2222112222
1211221121
So it greps 5 X 1 or 6 X 1
2212121211
1211221121
Thanks for you help (6 Replies)
Discussion started by: stinkefisch
6 Replies
2. Shell Programming and Scripting
I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word "description" excluding weird characters like $&lmp and without html tags in the new file output.txt. Help me. Thanx in advance. I have attached the input... (4 Replies)
Discussion started by: sachit adhikari
4 Replies
3. Shell Programming and Scripting
I have a file input.txt which have loads of weird characters, html tags and useful materials. I want to display 35 characters after the word description excluding weird characters like $$#$#@$#@***$# and without html tags in the new file output.txt. Help me. Thanx in advance.
My final goal is to... (11 Replies)
Discussion started by: sachit adhikari
11 Replies
4. Shell Programming and Scripting
Hello All,
I am here again scratching my head on pattern selection with special characters.
I have a large file having around 200 entries and i have to select a single line based on a pattern.
I am able to do that:
Code:
cat mytest.txt | awk -F: '/myregex/ { print $2}'
... (6 Replies)
Discussion started by: usha rao
6 Replies
5. Shell Programming and Scripting
Hello,
I have several xml files from which I want to find and return a particular string
I want to locate the InId="00000008". Now that is inlcuded within a tag and ofcourse the number is different every time
this is what I came up with given that after greping the line that contains the... (6 Replies)
Discussion started by: TasosARISFC
6 Replies
6. Shell Programming and Scripting
If I had a word list with a large amount of words in it, how would I (using a unix command) add, say, 123 to the end of each word?
EDIT: The word list is stored in a large text file. I need a command that applies the ending to each word in the file and saves the result in a new text file. (7 Replies)
Discussion started by: evillion
7 Replies
7. Shell Programming and Scripting
Hi All,
I have a word "DE_PR_Package__Basic" , i need to check if the first two characters of this words is DE or something else using perl script.
Can anyone pls let me know how to proceed?
Thanks in advance.
Giri! (3 Replies)
Discussion started by: girish.raos
3 Replies
8. Shell Programming and Scripting
Hi All
is there a way to delete last n characters from a word
like say i have employee_new
i want to delete _new. and just get only employee
I want this in AIX Shell scripting
Thanks (3 Replies)
Discussion started by: rajaryan4545
3 Replies
9. UNIX for Dummies Questions & Answers
Hi guyz,
suppose there is a variable a=sachin.
I want to have letter 'c' from variable a.
I am trying this awk 'substr(sachin,2,1)'
but its not working.
I cant user cut as it requires a file whereas i have a variable. (4 Replies)
Discussion started by: sachin.gangadha
4 Replies
10. Shell Programming and Scripting
Hi,
How can I split the characters in a word?
For Eg:
If my input is:
command
my output should be:
c
o
m
m
a
n
d
Please help me in doing it so. (5 Replies)
Discussion started by: chella
5 Replies
APPRES(1) General Commands Manual APPRES(1)
NAME
appres - list X application resource database
SYNOPSIS
appres [class [instance]] [-1] [toolkitoptions]
DESCRIPTION
The appres program prints the resources seen by an application (or subhierarchy of an application) with the specified class and instance
names. It can be used to determine which resources a particular program will load. For example,
% appres XTerm
will list the resources that any xterm program will load. If no application class is specified, the class -AppResTest- is used.
To match a particular instance name, specify an instance name explicitly after the class name, or use the normal Xt toolkit option. For
example,
% appres XTerm myxterm
or
% appres XTerm -name myxterm
To list resources that match a subhierarchy of an application, specify hierarchical class and instance names. The number of class and
instance components must be equal, and the instance name should not be specified with a toolkit option. For example,
% appres Xman.TopLevelShell.Form xman.topBox.form
will list the resources of widgets of xman topBox hierarchy. To list just the resources matching a specific level in the hierarchy, use
the -1 option. For example,
% appres XTerm.VT100 xterm.vt100 -1
will list the resources matching the xterm vt100 widget.
SEE ALSO
X(7), xrdb(1), listres(1)
AUTHOR
Jim Fulton, MIT X Consortium
X Version 11 appres 1.0.3 APPRES(1)