Sponsored Content
Full Discussion: naming files in awk
Top Forums UNIX for Dummies Questions & Answers naming files in awk Post 302697723 by elixir_sinari on Friday 7th of September 2012 09:16:50 AM
Old 09-07-2012
Or
Code:
test=$(wc -l < $X)

 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Controller Naming

Hello all, How does the Solaris identifies the controller subscript ? ( like c0txdxs0 or c1txdxsx ?? ) I have a unix box ( Ultra 30) running with 2.5.1. When I connected an external hard disk to the on-board scsi port, it got identified as c0t1dxsx... (... (1 Reply)
Discussion started by: shibz
1 Replies

2. Programming

Naming a socket

Im not very experienced with C so this is probably a basic question. I have a script that opens up 5 sockets, it then runs through a loop and on a given event reconnects to the relevant socket and sends some data. The socket to be reconnected to is kept track of with a 'count' variable. The sockets... (5 Replies)
Discussion started by: geester
5 Replies

3. UNIX for Dummies Questions & Answers

naming files that csplit creates

Hi, This is my first time on this forum.. I searched the previous answers, but didn't find the answer I was looking for at first glance. csplit works beautifully for me, except for one thing. My file looks like this: ad|name1|asdf...(several pages)..asdf ... ad|name2|asdf...(several... (8 Replies)
Discussion started by: juliette salexa
8 Replies

4. Shell Programming and Scripting

#file naming

hi all, Please advise at what circumstance those file will become -rwxr-xr-x 1 psa psa 1969088 Aug 18 2006 #libaa.sl -rwx------ 1 psa psa 2166784 Jul 25 2006 #libcrypto.sl.0.9.7 -rwx------ 1 psa psa 904040 Jul 25 2006 #libxxx.sl -rwx------ 1 psa ... (2 Replies)
Discussion started by: rauphelhunter
2 Replies

5. Shell Programming and Scripting

Complex overlap and naming of 2 input files - Awk

for every specific $1,$2 check the values ($2,$3) of their E ot I of input1 and overlap with input2. Specify names based on output. ####### if middle value is missing name them "SE" if first value is missing name them "AFE" if last value is missing name them "ALE" if 2 middle values are... (1 Reply)
Discussion started by: ruby_sgp
1 Replies

6. Shell Programming and Scripting

Concatenate files to one file with naming convention

Hi , i have below files in wrk folder. file names are 1102090001.CLT 1102090003.CLT 1102100019.CLT 1102100020.CLT the above files are concatenate to one file but that concatenate file name must be same naming convention. (date +%y%m%d)and 0001 count. example : concatenate file... (9 Replies)
Discussion started by: krbala1985
9 Replies

7. UNIX Desktop Questions & Answers

Combining files with specific patterns of naming in a directory

Greetings Unix exports, I am facing some problems in combining files with different name patterns with a directory and I would appreciate if you can help me I have more than 1000 files but they follow a specific pattern of naming. e.g. 64Xtest01.txt They are divided into two sets of test and... (9 Replies)
Discussion started by: A-V
9 Replies

8. Shell Programming and Scripting

Naming output files based on variable parameters and input filenames

Hello, I have a series of files in sub-directories that I want to loop through, process and name according to the input filename and the various parameters I'm using to process the files. I have a number of each, for example file names like AG005574, AG004788, AG003854 and parameter values like... (2 Replies)
Discussion started by: bdeads
2 Replies

9. Shell Programming and Scripting

Help with naming the file

Hi, I have a folder that contains files abc.txt def.txt ....and so on Inside abc.txt, I have @<TRIPOS>MOLECULE 4|Chelerythrine|abcb11_earlyIdentification_Stronginhib_washed_ligprep|sdf|1|dock Inside def.txt, I have @<TRIPOS>MOLECULE... (6 Replies)
Discussion started by: rossi
6 Replies

10. Shell Programming and Scripting

Concatenation of files with same naming patterns dynamically

Since my last threads were closed on account of spamming, keeping just this one opened! Hi, I have the following reports that get generated every 1 hour and this is my requirement: 1. 5 reports get generated every hour with the names "Report.Dddmmyy.Thhmiss.CTLR"... (5 Replies)
Discussion started by: Jesshelle David
5 Replies
SLPFindSrvTypes(3SLP)				    Service Location Protocol Library Functions 			     SLPFindSrvTypes(3SLP)

NAME
SLPFindSrvTypes - find service types SYNOPSIS
#include <slp.h> SLPError SLPFindSrvTypes(SLPHandle hSLP, const char *pcNamingAuthority, const char *pcScopeList, SLPSrvTypeCallback *callback, void *pvCookie); DESCRIPTION
The SLPFindSrvTypes() function issues an SLP service type request for service types inthe scopes indicated by the pcScopeList. The results are returned through the callback parameter. The service types are independent of language locale, but only for services registered in one of the scopes and for the indicated naming authority. If the naming authority is "*", then results are returned for all naming authorities. If the naming authority is the empty string, "", then the default naming authority, IANA, is used. IANA is not a valid naming authority name. The SLP_PARAMETER_BAD error code will be returned if you include it explicitly. The service type names are returned with the naming authority included in the following format: service-type "." naming-authority unless the naming authority is the default, in which case, just the service type name is returned. If an error occurs in starting the operation, one of the SLPError codes is returned. PARAMETERS
hSLP The SLPHandle on which to search for types. It cannot be NULL. pcNamingAuthority The naming authority to search. Use "*" to search all naming authorties; use the empty string "" to search the default naming authority. It cannot be NULL. pcScopeList A pointer to a char containing a comma-separated list of scope names to search for service types. It cannot be NULL or an empty string, "". callback A callback through which the results of the operation are reported. It cannot be NULL. pvCookie Memory passed to the callback code from the client. It can be NULL. ERRORS
This function or its callback may return any SLP error code. See the ERRORS section in slp_api(3SLP). EXAMPLES
Example 1: Using SLPFindSrvTypes() The following example finds all service type names in the default scope and default naming authority: SLPError err; SLPHandle hSLP; SLPSrvTypeCallback findsrvtypes; err = SLPFindSrvTypes(hSLP, "", "default", findsrvtypes, NULL); ENVIRONMENT VARIABLES
SLP_CONF_FILE When set, use this file for configuration. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWslpu | +-----------------------------+-----------------------------+ SEE ALSO
slpd(1M), slp_api(3SLP), slp.conf(4), slpd.reg(4), attributes(5) System Administration Guide: Network Services Guttman, E., Perkins, C., Veizades, J., and Day, M. RFC 2608, Service Location Protocol, Version 2. The Internet Society. June 1999. Howes, T. RFC 2254, The String Representation of LDAP Search Filters. The Internet Society. 1997. Kempf, J. and Guttman, E. RFC 2614, An API for Service Location. The Internet Society. June 1999. SunOS 5.10 16 Jan 2003 SLPFindSrvTypes(3SLP)
All times are GMT -4. The time now is 12:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy