Sponsored Content
Top Forums Programming Why no header file is OK for implementation? Post 303000400 by yifangt on Tuesday 11th of July 2017 02:04:17 PM
Old 07-11-2017
I see. That explained everything.
Thank you!
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Horizontal sorting of lines in a File: SED implementation?

Hi guys, Do you know how can I sort a file horizontally per line??? sample input file: zebra papa dog apple yahoo kangaroo ape sample output: apple dog papa zebra ape kangaroo yahoo Please post if u know the sed implementation of this (or whatever implementation u may know of)... (7 Replies)
Discussion started by: marlonus999
7 Replies

2. Linux

Reading the header of a tar file(posix header)

say i have these many file in a directory named exam. 1)/exam/newfolder/link.txt. 2)/exam/newfolder1/ and i create a tar say exam.tar well the problem is, when i read the tar file i dont find any metadata about the directories,as you cannot create a tar containig empty directories. on the... (2 Replies)
Discussion started by: Tanvirk
2 Replies

3. Shell Programming and Scripting

Split large file and add header and footer to each file

I have one large file, after every 200 line i have to split the file and the add header and footer to each small file? It is possible to add different header and footer to each file? (1 Reply)
Discussion started by: ashish4422
1 Replies

4. Shell Programming and Scripting

Renaming all header to specific header pattern

Input #HAC0253 EFVHIJHIJEFVTHIJOPKOPKTEFVEFVEFVOPKHIJOPKOPKHIJTTEFVEFVTEFV #BASFS12 EFVEFVHIJEFVEFVTOPKEFVOPKTHIJTTHIJOPK #ACG5115 TEFVEFVOIJEFVHIJHIJOPKOPKHIJHIJTTEFVEFVOPKTTEFVEFVOPKHIJOPKOPKOPK #ECG5114 IJTOPKHIJEFVOEFVEFVOPKTTEFVEFVOPKHIJOPKOPKOPK . . Output (5 Replies)
Discussion started by: patrick87
5 Replies

5. Shell Programming and Scripting

Comparing one file header with another file header

Hi Experts, In our project we have requirement where in we have to compare header of one file with header in the parameter file. There are 20 files which we ftp from one site. All this files have different header. We are comapring this file with our parameter file(which is having the header... (2 Replies)
Discussion started by: Amey Joshi
2 Replies

6. UNIX for Dummies Questions & Answers

Merge all csv files in one folder considering only 1 header row and ignoring header of all others

Friends, I need help with the following in UNIX. Merge all csv files in one folder considering only 1 header row and ignoring header of all other files. FYI - All files are in same format and contains same headers. Thank you (4 Replies)
Discussion started by: Shiny_Roy
4 Replies

7. Shell Programming and Scripting

Add column header and row header

Hi, I have an input like this 1 2 3 4 2 3 4 5 4 5 6 7 I would like to count the no. of columns and print a header with a prefix "Col". I would also like to count the no. of rows and print as first column with each line number with a prefix "Row" So, my output would be ... (2 Replies)
Discussion started by: jacobs.smith
2 Replies

8. Shell Programming and Scripting

Manipulate all rows except header, but header should be output as well

Hello There... I have a sample input file .. number:department:amount 125:Market:125.23 126:Hardware store:434.95 127:Video store:7.45 128:Book store:14.32 129:Gasolline:16.10 I will be doing some manipulations on all the records except the header, but the header should always be... (2 Replies)
Discussion started by: juzz4fun
2 Replies

9. Shell Programming and Scripting

Find header in a text file and prepend it to all lines until another header is found

I've been struggling with this one for quite a while and cannot seem to find a solution for this find/replace scenario. Perhaps I'm getting rusty. I have a file that contains a number of metrics (exactly 3 fields per line) from a few appliances that are collected in parallel. To identify the... (3 Replies)
Discussion started by: verdepollo
3 Replies
nns(3tcl)																 nns(3tcl)

__________________________________________________________________________________________________________________________________________________

NAME
nns - Name service facility, Commandline Client Application SYNOPSIS
nns bind ?-host host? ?-port port? name data nns search ?-host host? ?-port port? ?-continuous? ?pattern? nns ident ?-host host? ?-port port? nns who _________________________________________________________________ DESCRIPTION
Please read Name service facility, introduction first. The application described by this document, nns, is a simple command line client for the nano name service facility provided by the Tcllib packages nameserv, and nameserv::server. Beyond that the application's sources also serve as an example of how to use the client package nameserv. All abilities of a client are covered, from configuration to registration of names to searching. This name service facility has nothing to do with the Internet's Domain Name System, otherwise known as DNS. If the reader is looking for a package dealing with that please see either of the packages dns and resolv, both found in Tcllib too. USE CASES nns was written with the following two main use cases in mind. [1] Registration of a name/data pair in the name service. [2] Searching the name service for entries matching a glob pattern. Beyond the above we also want to be able to identify the client, and get information about the name service. COMMAND LINE nns bind ?-host host? ?-port port? name data This form registers the name/data pair in the specified name service. In this form the command will not exit to keep the registra- tion alive. The user has to kill it explicitly, either by sending a signal, or through the job-control facilities of the shell in use. It will especially survive the loss of the connection to the name service and reestablish the name/data pair when the connec- tion is restored. The options to specify the name service will be explained later, in section OPTIONS. nns search ?-host host? ?-port port? ?-continuous? ?pattern? This form searches the specified name service for entries matching the glob-pattern and prints them to stdout, with each entry on its own line. If no pattern is specified it defaults to *, matching everything. The options to specify the name service will be explained later, in section OPTIONS. If the option -continuous is specified the client will not exit after performing the search, but start to continuously monitor the service for changes to the set of matching entries, appropriately updating the display as changes arrive. In that form it will espe- cially also survive the loss of the connection to the name service and reestablish the search when the connection is restored. nns ident ?-host host? ?-port port? This form asks the specified name service for the version and features of the name service protocol it supports and prints the results to stdout. The options to specify the name service will be explained later, in section OPTIONS. nns who This form prints name, version, and protocol version of the application to stdout. OPTIONS This section describes all the options available to the user of the application -host name|ipaddress If this option is not specified it defaults to localhost. It specifies the name or ip-address of the host the name service to talk to is running on. -port number If this option is not specified it defaults to 38573. It specifies the TCP port the name service to talk to is listening on for requests. BUGS, IDEAS, FEEDBACK This document, and the application it describes, will undoubtedly contain bugs and other problems. Please report such in the category nameserv of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either application and/or documentation. SEE ALSO
nameserv(3tcl), nameserv::common(3tcl) KEYWORDS
application, client, name service CATEGORY
Networking COPYRIGHT
Copyright (c) 2007-2008 Andreas Kupries <andreas_kupries@users.sourceforge.net> Name service facility 1.1 nns(3tcl)
All times are GMT -4. The time now is 01:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy