Sponsored Content
Operating Systems Solaris feeding filenames to find command Post 302302479 by sanjay1979 on Tuesday 31st of March 2009 05:54:14 AM
Old 03-31-2009
Thanks pludi for ur reply but -
option 1 - it is very cumbersome when filelist is long.
option 2- it is very slow process ( performance wise).

Can't we tell this to find command in a direct manner ...?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

find lowercase filenames

How do I write the command to find all files with any lower case letters in the filename? I have tried find . -name *\(a-z\) and a lot of combinations like that, without success. thanks JP:confused: (4 Replies)
Discussion started by: jpprial
4 Replies

2. Shell Programming and Scripting

find filenames like unix commands

Hi, I need to write a small script to search in some specific directories to check if any file is present with a unix command name... Means if the directory contains any files like cat, vi, grep, find etc i need to list those files into a file. Please help Thanks, D (6 Replies)
Discussion started by: deepakgang
6 Replies

3. Shell Programming and Scripting

Loop assistance, getting array of random numbers and feeding to a command, how-to?

Hi all, I need a little assistance to complete the following script. I would like to take a file with a single number on each line and for each number, run it through a command. The loop will terminate once all numbers have been checked. Here is what I have thus far... COUNTER=`wc -l... (2 Replies)
Discussion started by: boolean2222
2 Replies

4. Shell Programming and Scripting

Find duplicate filenames and remove in different mount point

Hi Gurus, Do any kind souls encounter have the same script as mentioned here. Find and compare filenames in different mount point and remove duplicates. Thanks a million!!! wanna13e (7 Replies)
Discussion started by: wanna13e
7 Replies

5. Shell Programming and Scripting

awk help with find command and filenames with spaces

I have the following code: find /usr/local/test5 -type f -mtime +30 -exec ls -l {} \; | awk '{print $5, $6, $7, $8, $9}' I have this as output: 14 Aug 12 00:00 /usr/local/test5/file1 14 Aug 12 00:00 /usr/local/test5/lastname, The bolded part is where I run into trouble. The actual... (4 Replies)
Discussion started by: streetfighter2
4 Replies

6. Shell Programming and Scripting

script to find filenames with latest version and for all seq. numbers in a day

Hi, We have a requirement to find the set of filenames from the group of files in a specified folder based on (i) version number (ii) sequence number such that, for any given sequence number in a day only the latest version filenames have to indentified. Below is the format of... (4 Replies)
Discussion started by: Deepakbabu
4 Replies

7. UNIX for Dummies Questions & Answers

find & remove characters in filenames

I have a group of files in different directories with characters such as " ? : in the file names. How do I find these files and remove these characters on mass? Thanks (19 Replies)
Discussion started by: barrydocks
19 Replies

8. UNIX for Dummies Questions & Answers

Find the list of filenames that have the string 31 at 4th and 5th position

Hi, Can anyone let me know the command to know the list of filenames that have string 31 in their 4th and 5th positions inside the file: grep -l "31" main*.txt The above grep lists all the files which have 31 at any position but I want filenames having 31 at position 4 and position 5. (8 Replies)
Discussion started by: okkadu
8 Replies

9. UNIX for Dummies Questions & Answers

Find and replace mulitple charaters in filenames

I have a virtual pdf printer set up on my server which produces files with the following prefix: smbprn_00000044_Microsoft_Word_-_OriginalFilename.pdfthe number in the center of the file increase by one for each new file. I want to remove all the charaters infront of OriginalFilename.pdf using... (14 Replies)
Discussion started by: barrydocks
14 Replies

10. Shell Programming and Scripting

How to append timestamp in the filenames using find?

Hi, How to change the filenames with timestamp in sub folders I have the following code to select the records. find . -type f -name '*pqr*' -ctime 1 -print The following is the example app_root_dir="/`echo $ScriptDir | cut -d'/' -f2`" $app_root_dir/../BadFiles directory uvw.bad... (3 Replies)
Discussion started by: bobbygsk
3 Replies
dhcpclient(1M)															    dhcpclient(1M)

NAME
dhcpclient - Client for Dynamic Host Configuration Protocol Server SYNOPSIS
hostname] tracefile] class-id] debug_level] server_ipaddress] log_type] send_attempts] time_to_wait] interface server_ipaddress] hostname] tracefile] debug_level] interface server_ipaddress] log_type] time_to_wait] tracefile] debug_level] interface server_ipaddress] log_type] DESCRIPTION
is used to obtain the configuration parameters from the Dynamic Host Configuration Protocol server (bootpd(1M)) to configure the host. Currently, supports 10bt(10BaseT) and 100bt(100BaseT) networks only. It does not support networks. is invoked by the script (see auto_parms(1M)) at boot up. The file is used for the configuration of the interfaces. To invoke using the script, set the variable to a non-zero value in the file. can also be invoked at the command prompt, when the interface is not configured. Once the obtains the configuration parameters from the server, it is stored in a configuration file named The configuration parameters are valid for a fixed time, lease time. The configuration information in file will be of the following format. The length field denotes the length of the data field following it. All these lines collectively indicate one record. The configuration file will have series of records. Since this file contains all the configuration information, it can be used to identify the server from which the configuration parameters were obtained. The configuration file can also be used to obtain the same configuration parameters from the server. So, once the is invoked, it will try to read the configuration file, While trying to read the file, the following conditions are possible: 1. It may be possible that the configuration file had been deleted or it may not be available for reading. 2. The file may have got corrupted and contains irrelevant data for the particular interface. 3. There may be no configuration information for the particular interface. 4. User may have specified option meaning that a new lease is needed. For all of the above cases, has to first find the server which is ready for the service. For this purpose, it will send a message. If the user has specified server_ipaddress using the option, then replies only from the specified server will be accepted. The server in turn will reply with the configuration parameters that it can offer. This message is called If the client has sent the to broadcast address, then it will receive from more than one server. The selects one of the obtained. Then, it will send to the server, requesting the configu- ration parameters. The server will reply with a positive acknowledgement called if it is willing to send the configuration parameters to the host and with a negative acknowledgement, if it is not willing to do so. If the has received it will copy all the configuration parame- ters to the configuration file, else, it will send another message and repeat the whole process. This process is called "Obtaining a new lease". If all the above 4 cases are not true, then the can directly send the message and obtain the configuration parameters as mentioned above. This process is called "Renewing the lease". The various options supported by are as described below. Options When this option is used, the client will accept the reply from the server only if the in the request and reply packet matches. This option is used to send a hostname. The hostname should be specified as an ASCII string. This option is used during bootup time to obtain a new lease. If the client is trying to obtain the configuration parameters from the server for the first time, then does not exist. So, using this option, the client obtains a new lease for the interface specified. This option is used for dumping the internal data of an interface. A sample dump is shown below. This option is used to specify the file name for the debugging output. This option is used for specifying the of the device group. should be specified as an ASCII string. This option is used for logging of debug information. debug_level specifies the amount of debug information logged. The debugging messages are sent to This option is used for maintaining the lease. When invoked with this option, the runs as a daemon. The calculates how much time it needs to sleep before the lease needs to be renewed and then sleeps for that time. When it wakes up, it extends the lease by sending the request to the server. This option is used for ignoring the current lease. When this option is used, the current configuration information is discarded and request for a new lease is sent. This option is used for tracing the packets. It displays the packet contents in a readable format. This option is used for releasing a lease. The releases all the assigned configuration parameters. This is done by sending the message to the server. The dhcpclient then empties the record corresponding to that interface in the configuration file, This option is used to specify the ip address of the server from which the reply should be accepted. server_ipaddress must be a unicast IP address specified in dotted decimal form. If the log_type is a non zero value and if the debug_level is low enough for the process to detach from the tty (see syslog(3C)), then, the logging goes to else it goes to This option is used when the is running as a daemon. This option prints the various version strings of the to stdout. This option is used to specify the number of attempts the packet should be sent before obtaining a reply. send_attempts must be specified as an unsigned number. This option is used to specify the time interval between successive packet retransmission. time_to_wait will be in seconds. EXAMPLES
To the lease for the interface lan0 and invoke logging in the following set of commands is invoked at the command prompt: To trace the packet and get the debugging messages, use: This is an example of a file. 00 4 lan0 01 5 dhcph 02 0 03 0 04 0 05 0 06 4 4294967295 07 4 4294967295 08 4 0 09 4 0 10 4 1 11 6 8 0 9 25 a5 b1 12 4 192.11.22.107 13 4 255.255.255.0 14 4 0.0.0.0 15 0 16 4 192.11.22.3 17 4 192.11.22.3 18 0 19 0 20 0 21 4 0.0.0.0 22 0 23 0 24 39 63 82 53 63 35 1 5 33 4 ff ff ff ff 36 4 c0 b8 16 3 1 4 ff ff ff 0 c 5 64 68 63 70 68 2 4 ff ff b2 a8 ff AUTHOR
was developed by HP. FILES
configuration file. SEE ALSO
auto_parms(1M), bootpd(1M), bootpquery(1M), dhcptools(1M), syslog(3C). DARPA Internet Request For Comments: RFC1541, RFC1542, RFC1533, RFC1534, Assigned Numbers RFC. dhcpclient(1M)
All times are GMT -4. The time now is 02:09 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy