10-03-2011
remove words
All,
I have a file with below entries.
HTML Code:
/java/usr/abc/123
/java/usr/xyz/123_21
/java/usr/ab12/345/234
.........
.........
And I need entry as
HTML Code:
/java/usr/abc/config
/java/usr/xyz/config
/java/usr/ab12/config
.........
.........
Actually, I need to remove all other entries after three words, means
/java/usr/ab12/345/234/.../..../.... to /java/usr/ab12/
Please suggest me.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
Sample:
4051 Oct 4 10:03:36 AM 2008: TEST: end of testcase Checking Interface after reload, result fail
I need to remove first 10 words of the above line and output should be like
Checking Interface after reload, result fail
Please help me in this regard.
Thanks, (4 Replies)
Discussion started by: shellscripter
4 Replies
2. UNIX for Advanced & Expert Users
Hello,
I have a question:
I have two different files, let's call them file1 and file2. file1 contains a list of words, the words are on seperate lines:
word1
word2
word3
word4
etc...
file2 also contains a list of words, seperated in the same way as file1.
What I want to do is... (5 Replies)
Discussion started by: Beeser
5 Replies
3. Shell Programming and Scripting
Hi
I need to delete first two words from the arguments my script receives .. no matter how many arguments are passed .
Thanks
Praveen (5 Replies)
Discussion started by: praveenbvarrier
5 Replies
4. Shell Programming and Scripting
Hi folks,
I have file with the below
1245633505 +manual mroennfeldt@news.com.au
1245633506 +manual sal@bynews.com.au
1245633506 +manual whson@btimes.com
1245633507 +manual karla.marsden@tnews.com.au
1245633508 +manual king@netn.com.au
Now, I need the output of the files only with... (4 Replies)
Discussion started by: gsiva
4 Replies
5. Shell Programming and Scripting
My file looks like:
asd absjdd
sdff vczxs
wedssx c
dasx ccc
I need to keep
asd
sdff
wedssx
dasx
How do I do that experts?:wall::wall: (1 Reply)
Discussion started by: hakermania
1 Replies
6. Shell Programming and Scripting
Hello,
I am looking for a way to remove words from a list that contain 3 or more of the same character.
For example lets say the full list is as follows
ABCDEF
ABBHJK
AAAHJD
KKPPPP
NAUJKS
AAAHJD & KKPPPP should be removed from this list as obviously they contain AAA and PPPP... (7 Replies)
Discussion started by: colinireland
7 Replies
7. Shell Programming and Scripting
Hi all,
Is there a sed/awk cmd that will remove blank space from between words in a particular field, replacing with a single space?
Field containing 'E's in the example below:
Example input file:
AAAAA AA|BBBB|CCCCCCC|DDDDDD |EEEE EEEEEE| FFF FFFFF|
... (6 Replies)
Discussion started by: dendright
6 Replies
8. Shell Programming and Scripting
Hi I would like to remove last few words from File
Could anybody Help on it.
ps -ef | grep mgr.prm | awk '{print $10}'
/opt/app/dummyd/xyz/dirprm/mgr.prm
/opt/app/dummy/xyz/dirprm/mgr.prm
/opt/app/dummy/xyz/dirprm/mgr.prm
I want output like
/opt/app/dummyd/xyz... (4 Replies)
Discussion started by: tapia
4 Replies
9. UNIX for Dummies Questions & Answers
Tried using sed and uniq but it's removing the entire line. Can't seem to figure a way to just remove the word. Any help is appreciated. I have a file:
dog, text1, text2, text3
dog, text1, text2, text3
dog, text1, text2, text3
cat, text1, text2, text3 Trying to remove all duplicate instances... (6 Replies)
Discussion started by: jimmyf
6 Replies
10. Shell Programming and Scripting
Hi,
I have this text file with these words and I need help with removing words with repeated letter from these lines.
1 ama
5 bib
29 bob
2 bub
5 civic
2 dad
10 deed
1 denned
335 did
1 eeee
1 eeeee
2 eke
8... (4 Replies)
Discussion started by: crepe6
4 Replies
LEARN ABOUT MOJAVE
serialver
serialver(1) General Commands Manual serialver(1)
NAME
serialver - serial version command
SYNOPSIS
serialver [ options ] [ classnames ]
options
Command-line options, as specified in this document.
classnames
One or more class names.
DESCRIPTION
serialver returns the serialVersionUID for one or more classes in a form suitable for copying into an evolving class. When invoked with no
arguments, it prints a usage line.
OPTIONS
-classpath <directories and zip/jar files separated by:>
Set search path for application classes and resources.
-show Displays a simple user interface. Enter the full class name and press either the Enter key or the Show button to display
the serialVersionUID.
-Joption Pass option to the Java virtual machine, where option is one of the options described on the man page for the java applica-
tion launcher, java(1). For example, -J-Xms48m sets the startup memory to 48 megabytes. It is a common convention for -J to
pass options to the underlying virtual machine.
SEE ALSO
See (or search java.sun.com) for the following:
java.io.ObjectStreamClass @
http://java.sun.com/j2se/1.5/docs/api/java/io/ObjectStreamClass.html
24 June 2004 serialver(1)