haha...
Thanks a lot for your suggestion.
Hope that I can find a faster and more effective way to find a specific file from a list of directory soon
Quote:
Originally Posted by Vi-Curious
But hopefully you only have to do it one time.
If you have some idea of the first part of the path, at least, you can put that instead of using "/" and that should help some. Unfortunately, if you don't know where it is, ......
If the file is executable and it's in your path, you can try
Hi,
I am trying to find the content of file using grep and find command and list only the file names
but i am getting entire file list of files in the directory
find . -exec grep "test" {} \; -ls
Can anyone of you correct this (2 Replies)
I have to search a file in a prticular directory. filename will be passed through command line. The directory may contain subdirectory.
i.e.
suppose directory in /u03/appl (it can hard coded in script). This directory may contain subdirectory.
$ scriptname.sh filename
output should be... (2 Replies)
Hi Guys,
I want to search the content of all the files (of a particular type like .txt)
in a directory for a specific string pattern. Can anyone help me?
Thanks (7 Replies)
I am new to Unix scripting and would like some help. Here is my scenario:
1) I have a text files that contains two fields: file name and retention period in months:
File1 36
file2 24
File3 12
2) The directory I am searching contains sequential files.
3) I need to be able to take the file name... (10 Replies)
Hi all,
I have 2 files, One file contain data like this
FHIT
CS
CHRM1
PDE3A
PDE3B
HSP90AA1
PTK2
HTR1A
ESR1
PARP1
PLA2G1B
These names are mentioned in the second file(Please see attached second file) as
# Drug_Target_X_Gene_Name:(Where X can be any number (1-1000) (1 Reply)
Hi,
I have log file which rolls out every second which is as this.
HttpGenRequest - -<!--OXi dbPublish--> <created="2014-03-24 23:45:37" lastMsgId="" requestTime="0.0333"> <response request="getOutcomeDetails" code="114" message="Request found no matching data" debug="" provider="undefined"/>... (3 Replies)
Hi,
Is there any way to use find command and search only specific subdirectories in a directory.
for example
/home/d1
/home/d2
/home/d3
i want to search in the following directories
/home
/home/d1
/home/d2
i do not want the find command to search the /home/d3 directory. (6 Replies)
Ive been a vocal of FIND command even before. Command below doesnt really give me the file that is older than two weeks.. Is there a script that will list me the log files that i want like for this date December 10, 2014, it shud list me the date between November 26, 2014 and below.
When i run... (6 Replies)
Discussion started by: kenshinhimura
6 Replies
LEARN ABOUT ULTRIX
view
view(1) General Commands Manual view(1)Name
view - displays a file using the vi commands
Syntax
view [-t tag] [-r] [+command] [-l] [-wn] [-x] name...
Description
The command displays a text file. The command and the command run almost the same code except that in changes to a file are not allowed.
It is possible to get to the command mode of from within both.
The following is a list of some of the commands. See the vi Beginner's Reference Card and the "Introduction to Display Editing with vi" in
the Supplementary Documents, Volume 1: General User for more details that can be helpful for using
Screen Control Commands
<CTRL/L> Reprints current screen.
<CTRL/Y> Exposes one more line at top of screen.
<CTRL/E> Exposes one more line at bottom of screen.
Paging Commands
<CTRL/F> Pages forward one screen.
<CTRL/B> Pages back one screen.
<CTRL/D> Pages down half screen.
<CTRL/U> Pages up half screen.
Cursor Positioning Commands
j Moves cursor down one line, same column.
k Moves cursor up one line, same column.
h Moves cursor back one character.
l Moves cursor forward one character.
<RETURN> Moves cursor to beginning of next line.
0 Moves cursor to beginning of current line.
$ Moves cursor to end of current line.
<SPACE> Moves cursor forward one character.
nG Moves cursor to beginning of line n. Default is last line of file.
/pattern Moves cursor forward to next occurrence of pattern.
?pattern Moves cursor backward to next occurrence of pattern.
n Repeats last / or ? pattern search.
Exiting view
ZZ Exits
:q Quits session.
Options-t tag Specifies a list of tag files. The tag files are preceded by a backslash () and are separated by spaces. The tag option should
always be the first entry.
+command Tells the editor to begin by executing the specified command. An example would be +/pattern that would search for a pattern.
-l Sets the showmatch and lisp options for viewing LISP code..
-r Retrieves the last saved version of the name'd file in the event of a system crash. If no file is specified, a list of saved
files is produced.
-wn Sets the default window size to n. This option is useful for starting in a small window on dialups. The -x option is available
only if the Encryption layered product is installed.
-x Causes to prompt for a key. The key is used to encrypt and decrypt the contents of the file. If the file has been encrypted
with one key, you must use the same key to decrypt the file.
See Alsoedit(1), ex(1), vi(1)
The Little Gray Book: An ULTRIX Primer
The Big Gray Book: The Next Step with ULTRIX
"An Introduction to Display Editing with vi" in the Supplementary Documents, Volume 1: General User
view(1)