Thanks zaxxon. Its working fine.
Now I got few modifications in source file.
Modification is change in the file names.
Could you please help in this scenario?
Hi,
I have an input file like:
111
abcdefgh
asdfghjk
dfghjkl
222
aaaaaaa
bbbbbb
333
djfhfgjktitjhgfkg
444
djdhfjkhfjkghjkfg
hsbfjksdbhjkgherjklg
fjkhfjklsahjgh
fkrjkgnj
I want to read this input file and make separate output files with the header as numric value like "111"... (9 Replies)
Hi
extending to one of my previous posted query ....
I am using
nawk -v invar1="$aa" '{print > ("ABS\_"((/\|/)?"A\_":"B\_")invar1"\_NETWORKID.txt")}' spfile.txt
to get 2 different files based on split condition i.e. "|"
Similar to invar1 variable in nawk I also need one more variable... (18 Replies)
Hi,
I have a requiement where in i will get a single file but there will be mutiple headers.
Suppose say for eg:
Header1
Data...
Data...
Header2
Data..
Data..
Header3
Data..
Data..
I want to split each with the corresponding data into a single file.
Please let me know how... (1 Reply)
I have a bif text file with the following format:
d1_03 fr:23
d1_03 fr:56
d1_03 fr:67
d1_03 fr:78
d1_01 fr:35
d1_01 fr:29
d1_01 fr:45
d2_09 fr:34
d2_09 fr:78
d3_98 fr:90
d3_98 fr:104
d3_98 fr:360
I have like thousands of such lines
I want to reformat this file based on column 1... (3 Replies)
I was given a data file that I need to split into multiple lines/records based on a key word. The problem is that it is 2.5GB or bigger and everything I try in perl or sed causes a Segmentation fault. Can someone give me some other ideas.
The data is of the form:... (5 Replies)
I have a file in unix with sample data as follows :
--------------------------------------------------------------
--------------------------------------------------------------
{30001002|XXparameter|Layout|$
I want this file to be splitted into different files and corresponding to the sample... (54 Replies)
Hi Friends ,
Please guide me with the code to extract multiple files from one file .
The File Looks like ( Suppose a file has 2 tables list ,column length may vary )
H..- > File Header....
H....- >Table 1 Header....
D....- > Table 1 Data....
T....- >Table 1 Trailer....
H..-> Table 2... (1 Reply)
hdr=$(cut -c1 $path$file|head -1)#extract header”H”
trl=$(cut -c|path$file|tail -1)#extract trailer “T”
SplitFile=$(cut -c 50-250 $path 1$newfile |sed'$/ *$//' head -1')# to trim white space and extract table name
If; then # start loop if it is a header
While read I #read file
Do... (4 Replies)
Hi,
I have 2 csv/txt files with single columns. I am trying to merge them using paste, but its not working..
output3.csv:
flowerbomb
everlon-jewelry
sofft
steve-madden
dolce-gabbana-watchoutput2.csv:
http://www1.abc.com/cms/slp/2/Flowerbomb
http://www1.abc.com/cms/slp/2/Everlon-Jewelry... (5 Replies)
Hi,
I'm having a xml file with multiple xml header. so i want to split the file into multiple files.
Sample.xml consists multiple headers so how can we split these multiple headers into multiple files in unix.
eg :
<?xml version="1.0" encoding="UTF-8"?>
<ml:individual... (3 Replies)
Discussion started by: Narendra921631
3 Replies
LEARN ABOUT HPUX
package
PACKAGE(1) General Commands Manual PACKAGE(1)NAME
package - register package user via mailagent
SYNOPSIS
package address system version patchlevel [ mailpatches | notifypatches ]
DESCRIPTION
This command is not intended to be run directly by a user, but may appear in any mail whose subject is set to Command. Such mail will be
processed by the mailagent(1), which will extract all lines beginning with @SH, which may specify this command. The mailagent first sets
environment variables that will be used by the command.
Package is used to notify the author of a package about its users. It is normally generated automatically by the MailAuthor.U unit when
the user runs Configure.
If the patchlevel specified is not the latest for that system and version, mail is immediately sent suggesting that they upgrade and
remindng them how to request the latest patches.
The final parameter, if included may be set to mailpatches to specify that the user would like to have future patches mailed to them, or
notifypatches to specify that a mail notification of future patches should be sent, rather than the entire patch.
The user's address and notification request are saved in the file users in the package's directory.
Package performs an approximate address match in order to avoid duplicate entries. Whenever this elimination occurs, a warning message is
issued in the logfile. Two addresses will be said equivalent if one of them has an added machine name or if they are really equal. There-
fore, the following addresses are equivalent:
ram@acri.fr
ram@main.acri.fr
whereas the following two are not equivalent, unfortunately:
ram@acri.acri.fr
ram@main.acri.fr
When a user is asking to be left alone, it is important to let him know if the request failed, because he will be annoyed when the next set
of patches is issued and he still gets them despite his previous request. Therefore, if no approximate match occurs, a warning message is
sent back, with a list of addresses that are close to his own e-mail address, but not equivalent. Fortunately, the following addresses are
considered close:
ram@acri.fr
ram@somewhere.com
raphael@main.acri.fr
manfredi@acri.acri.fr
because they either have the same login (important when someone changes company) or share the same domain or sub-domain part.
In order to edit the users file, the edusers script should be used. For one thing, it will let you edit the users file from whatever pack-
age you name in the command line, but it will also properly lock the file so that the execution of package will stall for the duration of
the manual edition (provided you have a strict locking policy defined in your ~/.mailagent configuration file).
FORWARDING
Package supports command forwarding as described in the mailhelp(1) page.
FILES
~/.mailagent configuration file for mailagent.
System/users list of users of that system.
This file consists of single line records, one for each registered user. Each record consists of three tab-separated
fields.
The first field indicates the level of updates requested by the user by a single letter as follows:
M Mail future patches directly to the user when they are issued.
N Notify the user of future patches.
U The users chose to let the author know that they have tried the program, but does not wish to know about future
updates.
L The user is no longer interested in the program and wants to be left alone.
The second field is their last notified patch level, or a dash (-) if it is not known.
The third field is the user's Email address.
Log/agentlog mailagent's log file
AUTHORS
Graham Stoney <greyham@research.canon.oz.au>
Raphael Manfredi <Raphael_Manfredi@pobox.com> (minor enhancements)
SEE ALSO edusers(1), mailagent(1), metaconfig(1).
PACKAGE(1)