Sponsored Content
Full Discussion: naming files in awk
Top Forums UNIX for Dummies Questions & Answers naming files in awk Post 302697709 by pamu on Friday 7th of September 2012 09:06:56 AM
Old 09-07-2012
Quote:
Originally Posted by A-V
I saw but it didnt work either Smilie... it only create files equal to the max number of lines in one file for whole directory
oops you changed it one min
Just add..

Code:
awk -v NM="$name" '$0 != ""{ print > NR"-"NM }' $X

This User Gave Thanks to pamu For This Post:
 

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
ftpservers(4)						     Kernel Interfaces Manual						     ftpservers(4)

NAME
ftpservers - ftpd virtual hosting configuration specification file SYNPOSIS
DESCRIPTION
The file is used to tell which set of virtual domain configuration files that the server should use. With support, wu-ftpd has the ability to use separate configuration files for each virtual domain. For a virtual host, configuration files can be placed into a separate virtual domain directory. The directory path and the virtual host IP address that is to use those configuration files is listed in the file. The actual configuration files put into the virtual domain direc- tory MUST be named as follows: virtual domain's access file. restrict the accounts that can use the web server." SITE GROUP and SITE GPASS support." allow or deny usernames access to that virtual server." customize conversions available in the virtual domain." You do not need to put every file in each of the virtual domain directories. If you want a set of domains to use the master copy of a file, for example, the file, then do not include that file in those virtual domain directories. In that case the default master copy will be used. The file names must match those listed above. If you misspell any of them or name them something else, the server WILL NOT find them and the master copy of them will be used instead. ftpservers File Format There are two fields to each entry. For example: When an ftp client connects to the server, tries to match the IP address the ftp client connected to with one found in the file. If a match is found the path to the specified directory containing the configuration files for that specific domain is returned. The server uses any configuration files in that directory. If a match is not found, or an invalid directory path is encountered, default paths to the configuration files are used. The use of in the example above fails the check for a specific directory and the master configuration files will be used. Either the actual IP address or a specific hostname can be used to specify the virtual domain. It is better to specify the actual IP of the virtual domain as it reduces the need for a domain lookup and eliminates DNS security related naming issues. Comment lines are depicted with a # sign. Both comment lines and blanklines are ignored. FILES
AUTHOR
was developed by the Washington University, St. Louis, Missouri. SEE ALSO
ftpd(1M) , ftpaccess(4) , ftpconversions(4) , ftphosts(4). ftpservers(4)
All times are GMT -4. The time now is 09:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy