Hi,
i am very new to UNIX, i am trying to loop thru the files in a directory.
I got the filenames into a variable using
$files=`ls`
Here $files will contain
<filename1> <filename2> <filename3>
I want to get one filename at a time and append it to some some text.
forexample, ... (1 Reply)
I have a directory of files and each file has a random 5 digit string at the beginning that needs to be removed. Plus, there are some files that will be identically named after the 5 digit string is removed and I want those eliminated or moved.
any ideas? (17 Replies)
I have many files similar to this one: AC41_AC85_86_AC128_129_MC171_173_SF_207_FMV.pdf.
I want a directory named AC41 and to put the file AC41_AC85_86_AC128_129_MC171_173_SF_207_FMV.pdf into the directory. Next, a directory named AC85 and put the file into it. Also, continue to cycle through... (1 Reply)
Hi All,
I have a requirement where I need to get the all file names present in a particular directory in to a single separated by space,
I have files in /home/RAAM/work directory as
test1.xls
test2.xls
test3.xls
I need to get all filenames from that directory in single line like ... (6 Replies)
Hi I have abc_ahb_one.v
abc_ahb_two.v
abc_ahb_three.v
........l
like this
-----upto
abc_ahb_ninety.v in some directory.
I need to change those file names to like below.
... (5 Replies)
Hi,
I am new in unix.
I have below requirement:
I have two files at the same directory location
File1.txt and File2.txt (just an example, real scenario we might have File2 and File3 OR File6 and File7....)
File1.txt has :
header1
record1
trailer1
File2.txt has:
header2
record2... (4 Replies)
I need to get the names of files which are starting with a string testfile. Also i want to create a XML file in the same location and write these file names into the XML.
Ex:
<path>
<dir>
<file>testfile1</file>
</dir>
<dir>
<file>testfile2</file>
</dir>... (4 Replies)
Hi,
I have a unix file with the below structure -
CustId1 CustName1 CustPhn1 /u/home/xmldata/A000001
CustId2 CustName2 CustPhn2 /u/home/xmldata/A000002
CustId3 CustName3 CustPhn3 /u/home/xmldata/A000003
Then I have another unix directory /u/home/xmldata
This directory has... (3 Replies)
hi,
how can i take the file names from a directory and store only the filenames in the file.
suppose i have a directory which contains the following files and subdirectories.
$ ls -ltr
total 16
-rw-rw-r-- 1 adm etc 4 Aug 6 20:37 s1.txt
-rw-rw-r-- 1 adm etc 4 Aug 6 20:37 s2.txt... (11 Replies)
Can someone give me a tip on writing a script that, for each file in the working directory, prints the filename, the # of lines, and the # of words to stdout? (2 Replies)
Discussion started by: flash123
2 Replies
LEARN ABOUT DEBIAN
in.aspd
ASPD(8) User Manual ASPD(8)NAME
aspd - Address Search Protocol Daemon
SYNOPSIS
aspd [-r repetitions] [-i interface] [hostname]
aspd -V
in.aspd [-r repetitions] [hostname]
in.aspd -V
DESCRIPTION
Aspd is a daemon that waits for incoming address requests on asp's port. If aspd detects itself as being the searched host, it sends a
reply to the client, allowing the retrieval of its IP address. It is possible to specify an alternate hostname on command line, instead of
using the value returned from the gethostname(3) function. This is useful if your hostname is dynamically changed when the link goes up.
If aspd is invoked as in.aspd it will work as a server: it makes its work and exit, instead of wait for new requests; this is useful if you
want inetd(8) to automatically run the server when a request arrives.
OPTIONS -r repetitions
Set the number of times to re-send the reply. Default is 5 times.
-i interface
Set the interface used to get the address to send to the client, for example ppp0. Note that this option can't be used if aspd is
invoked by inetd. Note also that you have to kill aspd if the interface address changes.
-V Show version information
LOGGING
The peer IP address and the searched hostname are logged through the syslogd(8) system logger daemon, using the daemon facility and the
notice level. Transmission errors use the warning level and are logged only if aspd was compiled with the debug support.
FILES
/etc/services
Used by aspd to find the asp protocol port number.
BUGS
Maybe.
AUTHOR
Stenio Brunetta <stenio@brunettaeperin.it>
Comments and suggestions are welcome.
SEE ALSO asp(1), inetd(8), syslog(3), syslogd(8).
Linux February 1997 ASPD(8)