07-30-2009
yes, it worked out thanks a lot.
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
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
5. Shell Programming and Scripting
All,
I have a file with below entries.
/java/usr/abc/123
/java/usr/xyz/123_21
/java/usr/ab12/345/234
.........
.........
And I need entry as
/java/usr/abc/config
/java/usr/xyz/config
/java/usr/ab12/config
.........
.........
Actually, I need to remove all other entries... (2 Replies)
Discussion started by: anshu ranjan
2 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
MAN(1) General Commands Manual MAN(1)
NAME
man - print out the manual
SYNOPSIS
man [ - ] [ -a ] [ -M path ] [ section ] title ...
DESCRIPTION
Man is the program which provides on-line access to the UNIX manual. If a section specifier is given, man looks in that section of the
manual for the given title(s). Section is either an Arabic section number (``3'' for example), or one of the words ``local'', ``new,'' or
``old''. (The abbreviations ``l'', ``n'', and ``o'' are also allowed.) If section is omitted, man searches all sections of the manual,
giving preference to commands over library subroutines, and displays the first manual page it finds, if any. If the -a option is supplied,
man displays all applicable manual pages.
Normally man checks in standard locations (/usr/man and /usr/local/man) for manual information. This can be changed by supplying a search
path (a la the Bourne shell) with the -M flag. The search path is a colon (``:'') separated list of directories in which man expects to
find the standard manual subdirectories. This search path can also be set with the environmental variable MANPATH.
Since some manual pages are intended for use only on certain machines, man only searches those directories applicable to the current
machine. Man's determination of the current machine type can be overridden by setting the environmental variable MACHINE.
If the standard output is a teletype, and the - flag is not provided, man uses more(1), or the pager provided by the environmental variable
PAGER, to display the manual page.
The FORTRAN version of section 3 of the manual may be specified by supplying man with the section ``3f''. Also, a specific section of the
local manual may be specified by appending a number to the section, i.e. ``l5'' would indicate section 5 of the local manual.
FILES
/usr/man standard manual area
/usr/man/cat?/* directories containing standard manual pages
/usr/local/man/cat?/* directories containing local manual pages
/usr/src/man directories containing unformatted manual pages
SEE ALSO
apropos(1), more(1), whatis(1), whereis(1)
BUGS
The manual is supposed to be reproducible either on the phototypesetter or on a typewriter, however, on a typewriter, some information is
necessarily lost.
4th Berkeley Distribution April 19, 1988 MAN(1)