08-22-2005
How do you specific lines in a file?
I'm looking to show specific lines (eg. 20 through 40) of a series of files in the directory. How do I do this?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file which has some lines starting with a particular word. I would like to delete 5 lines before each such line containing that particular word.
eg:
line1
line2
line3
line4
line5
line6
"particular word"...
I would like to delete line2-line6 and all such occurences in that... (4 Replies)
Discussion started by: ramu_1980
4 Replies
2. Shell Programming and Scripting
Hi there
I have a file with a variable amount of rows but the 45th, 46th and 47th charachter of each line is the status field which is a three digit code ie 001, 002, 003 etc. My question is this..I need to strip all the records/lines with 002's out of the file completely and put them into... (14 Replies)
Discussion started by: hcclnoodles
14 Replies
3. Shell Programming and Scripting
When restoring a file in my uninstall program I need to remove the lines I added to a file during the install. In between the file can be modified by the users.
Assume file1 is as follow:
xxx str2 xxxx
.....
...The Following lines containing str* have to be removed...
xxx str1 xxxx
xxx ... (17 Replies)
Discussion started by: bluemoon1
17 Replies
4. UNIX for Dummies Questions & Answers
are there any basic commands that can display lines 99 - 101 of the /etc/passwd file?
I'm thinking use of head and tail, but I forget what numbers to use and where to put /etc/passwd in the command. (2 Replies)
Discussion started by: raidkridley
2 Replies
5. Shell Programming and Scripting
Hello All,
I am new to this forum. I am currently facing a problem in manipulating files.
I have two files called old-matter and new-matter
# cat old-matter
abc: this, is a, sample, entry
byi: white board, is white in color
rtz: black, board is black
qty: i tried, a lot
asd: no... (1 Reply)
Discussion started by: rahmathulla
1 Replies
6. Shell Programming and Scripting
Hi,
I have a file named Mani.txt. The contents are like this
cat Mani.txt
--------------------------------------------------------
Hi there how r u
My Name is Mani
Bye
------------------------------------------------------------
I want to cut the first and last lines from the file... (15 Replies)
Discussion started by: pathanjalireddy
15 Replies
7. Shell Programming and Scripting
Hi,
I have a file which contains DDL statements- CREATE TABLE, CREATE INDEX, ALTER TABLE etc.
I have to only pick CREATE TABLE statements from the file-
Source :
----------------------------------------------
--DDL for table abc
--------------------------------------------
CREATE TABLE... (4 Replies)
Discussion started by: newb
4 Replies
8. Shell Programming and Scripting
Hi,
I have one file, say file 1, that has data like below where 19900107 is the date,
19900107 12 144 129 0.7380047
19900108 12 168 129 0.3149017
19900109 12 192 129 3.2766666E-02
... (3 Replies)
Discussion started by: Wynner
3 Replies
9. UNIX for Dummies Questions & Answers
This could be a really dummy question.
I have a log text file.
What unix command to extract line from specific string to another specific string.
Is it something similar to?:
more +/"string" file_name
Thanks (4 Replies)
Discussion started by: aku
4 Replies
10. UNIX for Dummies Questions & Answers
Hello All,
this is my first post so I don't know if I am doing this right.
I would like to append entries from a series of strings (contained in a text file) consecutively at the end of specifically labeled lines in another file.
As an example:
- the file that contains the values to be... (3 Replies)
Discussion started by: gus74
3 Replies
LEARN ABOUT HPUX
ftpservers
ftpservers(4) Kernel Interfaces Manual ftpservers(4)
NAME
ftpservers - ftpd virtual hosting configuration specification file
SYNPOSIS
DESCRIPTION
The file is used to tell which set of virtual domain configuration files that the server should use. With support, wu-ftpd has the ability
to use separate configuration files for each virtual domain.
For a virtual host, configuration files can be placed into a separate virtual domain directory. The directory path and the virtual host IP
address that is to use those configuration files is listed in the file. The actual configuration files put into the virtual domain direc-
tory MUST be named as follows:
virtual domain's access file.
restrict the accounts that can use the web server."
SITE GROUP and SITE GPASS support."
allow or deny usernames access to that virtual server."
customize conversions available in the virtual domain."
You do not need to put every file in each of the virtual domain directories. If you want a set of domains to use the master copy of a
file, for example, the file, then do not include that file in those virtual domain directories. In that case the default master copy will
be used.
The file names must match those listed above. If you misspell any of them or name them something else, the server WILL NOT find them and
the master copy of them will be used instead.
ftpservers File Format
There are two fields to each entry.
For example:
When an ftp client connects to the server, tries to match the IP address the ftp client connected to with one found in the file.
If a match is found the path to the specified directory containing the configuration files for that specific domain is returned. The
server uses any configuration files in that directory.
If a match is not found, or an invalid directory path is encountered, default paths to the configuration files are used. The use of in the
example above fails the check for a specific directory and the master configuration files will be used.
Either the actual IP address or a specific hostname can be used to specify the virtual domain. It is better to specify the actual IP of
the virtual domain as it reduces the need for a domain lookup and eliminates DNS security related naming issues.
Comment lines are depicted with a # sign. Both comment lines and blanklines are ignored.
FILES
AUTHOR
was developed by the Washington University, St. Louis, Missouri.
SEE ALSO
ftpd(1M) , ftpaccess(4) , ftpconversions(4) , ftphosts(4).
ftpservers(4)