Need to change two words in a line using shell script.
Hi,
i have a line
in /etc/inet.conf file. ineed to replace nobody with root and /tftpboott with /flx/boot. i tried using sed ,but i could not change both of them. can you please help me to do this.
Edit: Next time use [code] and [/code] tags when displaying code, data or logs etc. to enhance readability and preserve formatting like indention etc., ty.
Last edited by zaxxon; 08-24-2009 at 03:55 AM..
Reason: code tags
Hi,
I'm struggling to write a script to do the following,
-will go through each line in the file
-in a specific character positions, changes
the value to a new value
-These character positions are fixed througout the file
-----------------------
e.g.: file1.sh will have the following 3... (4 Replies)
Hi,
I have a file content like:
:
:
<span class="ColorRed"> 1.23</span><br>
:
:
the value 1.23 will be changed from time to time, and I want to use a shell script command, e.g grep or sed, to retrieve only the value, how to do it?
Thanks!
Victor (6 Replies)
Hi,
I'm working on a script to make automatic the new releases of my website...
However in this script I put all the css script in a single one. There's no rpoblem for that.
My problem is when I want to change the header of my layout page to put instead of :
$header.="<link rel=\"stylesheet\"... (2 Replies)
Hello everybody,
I have some files in directory. I want to shift 3 characters of filenames to the right at a same time.
for example, I have filenames like $ls -l
01_2000.G3.input.txt
02_2000.G3.input.txt
...,
...,
04_2010.G3.input.txt
I want to change the filenames like... (3 Replies)
hello,
i 'd like your help about a bash script which:
1. finds inside the html file (it is attached with my post) the code number of the Latest Stable Kernel,
2.finds the link which leads to the download location of the Latest Stable Kernel version,
(the right link should lead to the file... (3 Replies)
Hi
I want to write a shell script to print only those words from a file whose beginning
and last character are same.
Please help.
Thanks,
vini (5 Replies)
Hello,
I have output like below:
-----------------------------------------------------------------------------
Group 'group1' on system 'system01' is running.
-----------------------------------------------------------------------------
Group 'group2' on system 'system01' is running.... (4 Replies)
I just learning shell script. Need your shell script expertise to help me. I would like to stemming the words by matching the root words first between both files and replace all words by "I" character but replace "B" character after root words and "E" before root words in affix_words.txt.
... (18 Replies)
hi,
i need to replace all words in any quote position and then need to change the words inside the file thousand of raw.
textfile data :
"Ninguno","Confirma","JuicioABC"
"JuicioCOMP","Recurso","JuicioABC"
"JuicioDELL","Nulidad","Nosino"
"Solidade","JuicioEUR","Segundo"
need... (1 Reply)
Hi All,
I need one help to replace particular words in file based on if finds another words in that file .
i.e.
my self is peter@king.
i am staying at north sydney.
we all are peter@king.
How to replace peter to sham if it finds @king in any line of that file.
Please help me... (8 Replies)
Discussion started by: Rajib Podder
8 Replies
LEARN ABOUT DEBIAN
tftpd
in.tftpd(1M)in.tftpd(1M)NAME
in.tftpd, tftpd - Internet Trivial File Transfer Protocol server
SYNOPSIS
in.tftpd [-s] [homedir]
tftpd is a server that supports the Internet Trivial File Transfer Protocol (TFTP).
Before responding to a request, the server attempts to change its current directory to homedir; the default directory is /tftpboot.
The use of tftp does not require an account or password on the remote system. Due to the lack of authentication information, in.tftpd will
allow only publicly readable files to be accessed. Files may be written only if they already exist and are publicly writable. Note that
this extends the concept of "public" to include all users on all hosts that can be reached through the network. This may not be appropriate
on all systems, and its implications should be considered before enabling this service.
in.tftpd runs with the user ID and group ID set to [GU]ID_NOBODY under the assumption that no files exist with that owner or group. How-
ever, nothing checks this assumption or enforces this restriction.
-d Debug. When specified it sets the SO_DEBUG socket option.
-s Secure. When specified, the directory change to homedir must succeed. The daemon also changes its root directory to homedir.
The in.tftpd server is IPv6-enabled. See ip6(7P).
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWtftp |
+-----------------------------+-----------------------------+
svcs(1), tftp(1), inetadm(1M), inetd(1M), svcadm(1M), netconfig(4), attributes(5), smf(5), ip6(7P)
Malkin, G. and Harkin, A. RFC 2347, TFTP Option Extension. The Internet Society. May 1998
Malkin, G. and Harkin, A. RFC 2348, TFTP Blocksize Option. The Internet Society. May 1998
Malkin, G. and Harkin, A. RFC 2349, TFTP Timeout Interval and Transfer Size Options. The Internet Society. May 1998
Sollins, K.R. RFC 1350, The TFTP Protocol (Revision 2). Network Working Group. July 1992.
The tftpd server only acknowledges the transfer size option that is sent with a read request when the octet transfer mode is specified.
The in.tftpd.1m service is managed by the service management facility, smf(5), under the service identifier:
svc:/network/tftp/udp6:default
Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). Responsibil-
ity for initiating and restarting this service is delegated to inetd(1M). Use inetadm(1M) to make configuration changes and to view config-
uration information for this service. The service's status can be queried using the svcs(1) command.
Unlike most smf(5) services, a manifest for the tftp service is not included in the system. To create one and enable this service, the
administrator should:
1. Edit /etc/inet/inetd.conf and uncomment the tftp entry.
2. Run /usr/sbin/inetconv.
After you run inetconv, the svc:/network/tftp/udp6:default service is created and enabled.
8 Mar 2005 in.tftpd(1M)