01-31-2007
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can i clear all space characteres for a long file at the end of each line? (3 Replies)
Discussion started by: osymad
3 Replies
2. Shell Programming and Scripting
Hello folks,
Is there a simple way to trim trailing spaces from each line a file. Please let me know.
Regards,
Tipsy. (5 Replies)
Discussion started by: tipsy
5 Replies
3. Shell Programming and Scripting
hi,
could anyone tell me the command to append spaces at the end of the line.
for example, i need 1000 spaces after the word "helloworld"
echo "helloworld " i need to achieve this in someother way hardcoding 1000 spaces is not practical.
as i am totally new... (3 Replies)
Discussion started by: kavithacs
3 Replies
4. Shell Programming and Scripting
How to append constant No of spaces suppose 52 at end of each line in a file (xyz) excluding first and last line.
Please Help me out for the same. (1 Reply)
Discussion started by: deepam
1 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I have a problem where I need to append few spaces(say 10 spaces) for each line in a file whose length is say(100 chars) and others leave as it is.
I tried to find the length of each line and then if the length is say 100 chars then tried to write those lines into another file and use a sed... (17 Replies)
Discussion started by: prathima
17 Replies
6. Shell Programming and Scripting
child_amt=$amount
prev_line="$prev_line $child_amt"
i am getting the result like this
21234567890001343 000001004OLFXXX029100020091112 0000060
but i want 8 spaces between the eg:
21234567890001343 000001004OLFXXX029100020091112 0000060
how can i do this in .ksh (1 Reply)
Discussion started by: kshuser
1 Replies
7. UNIX for Dummies Questions & Answers
I have a script wherein I access each line of the file using a FOR loop and then perform some operations in each line. The problem is each line that gets extracted in FOR loop truncates trailing blank spaces and control characters (^M) that is present at the end of each line. I don't wan this to... (5 Replies)
Discussion started by: Shobana_s
5 Replies
8. Shell Programming and Scripting
I want to remove the trailing spaces at the end of each line starting from a particular position(using ksh script). For example, in the attached file, I want to remove all the spaces starting from the position 430 till the end. The space has to be removed only from the 430th position no matter in... (3 Replies)
Discussion started by: Suryaaravindh
3 Replies
9. UNIX Desktop Questions & Answers
I have a file of about 10k records and eace line is having an extra space of 5 byte at the end.. Iwant to remove the extra spaces at the end of each line.. Can someone please help me out.. I tried using sed command and its not working... can someone please help me out. (3 Replies)
Discussion started by: rammohan
3 Replies
10. Shell Programming and Scripting
I have a file which contains the data lines like below.I want to remove the tab spaces at the end of each line.I have tried with the command sed 's/\+$//' file.but it does not work.Can anyone help me on this?
15022 15022 15022 15022 15022 15022
15023 15023 15023 15023 15023 ... (16 Replies)
Discussion started by: am24
16 Replies
LEARN ABOUT REDHAT
host.conf
HOST.CONF(5) Linux System Administration HOST.CONF(5)
NAME
host.conf - resolver configuration file
DESCRIPTION
The file /etc/host.conf contains configuration information specific to the resolver library. It should contain one configuration keyword
per line, followed by appropriate configuration information. The keywords recognized are order, trim, multi, nospoof, and reorder. These
keywords are described below.
order This keyword specifies how host lookups are to be performed. It should be followed by one or more lookup methods, separated by com-
mas. Valid methods are bind, hosts, and nis.
trim This keyword may be listed more than once. Each time it should be followed by a single domain name, with the leading dot. When
set, the resolv+ library will automatically trim the given domain name from the end of any hostname resolved via DNS. This is
intended for use with local hosts and domains. (Related note: trim will not affect host- names gathered via NIS or the hosts file.
Care should be taken to ensure that the first hostname for each entry in the hosts file is fully qualified or non-qualified, as
appropriate for the local installation.)
multi Valid values are on and off. If set to on, the resolv+ library will return all valid addresses for a host that appears in the
/etc/hosts file, instead of only the first. This is off by default, as it may cause a substantial performance loss at sites with
large hosts files.
nospoof
Valid values are on and off. If set to on, the resolv+ library will attempt to prevent hostname spoofing to enhance the security of
rlogin and rsh. It works as follows: after performing a host address lookup, resolv+ will perform a hostname lookup for that
address. If the two hostnames do not match, the query will fail.
spoofalert
If this option is set to on and the nospoof option is also set, resolv+ will log a warning of the error via the syslog facility.
The default value is off.
reorder
Valid values are on and off. If set to on, resolv+ will attempt to reorder host addresses so that local addresses (i.e., on the
same subnet) are listed first when a gethostbyname(3) is performed. Reordering is done for all lookup methods. The default value
is off.
FILES
/etc/host.conf
Resolver configuration file
/etc/resolv.conf
Resolver configuration file
/etc/hosts
Local hosts database
SEE ALSO
gethostbyname(3), hostname(7), resolv+(8), named(8)
Debian GNU/Linux 1997-01-02 HOST.CONF(5)