These numbers are extracted from another file which has groups of 10. All I want is to pad the file which has missing entries, with newlines. Will it be easier if I modify the original file as follows:
So now I have inserted a newline between individual groups.Group1 has all 10 entries, group 2 has only 4 entries (that means I will have to add 6 newlines), group 3 has 6 entries (so I will have to add 4 lines) and so on.
Hi Gurus,
There is a ASCII file in which a comma is used as a seperator for the amount field when the amount exceed seven digits: e.g. 0001300,000. Now, this comma needs to be removed from this field, after padding leading zeros (to maintain the ASCII positions) e.g. 00001300000.... (1 Reply)
Hi All,
I am getting a xml file where the first field contains a carriage return and the all other fields doesnot contains any carriage return. So all the other records comes in the second line.
<?xml version="1.0" encoding="UTF-8"?>
<ns0:iSeriesCspIntegration... (3 Replies)
Hello, I'm having a problem figuring out the syntax for padding 10-99. Everything else in the program works fine so I want to focus in on just this part of the code. Below is a snippet of the code that I am having problems with. I appreciate all the help I can get. Thank you.
The script... (7 Replies)
Hi champs!
I have a fixed width file in which the records appear like this
11111 <fixed spaces such as 6> description for 11111 <fixed spaces such as 6> some more field to the record of 11111
22222 <fixed spaces such as 6> description for 22222 <fixed spaces such as 6> some more field to the... (8 Replies)
Hi,
I have a fixed length text file that needs to be cut into individual files in aix and facing padding issues. If I have multiple blank spaces in the file it is just making it one while cutting the files..
Eg:-
$ - blank space
filename:file.txt
... (2 Replies)
What's the best way to find a string in a very long file without newlines in Unix? The standard utility I'm aware of for finding a string in a single file is grep, but for a long file without newlines, I think the output is just going to be the input. I suppose I could use sed to replace the... (5 Replies)
Hello. I'm making a (hopefully) simple shell script xml parser that outputs a file I can grep for information. I am writing it because I have yet to find a command line utility that can do this. If you know of one, please just stop now and tell me about it. Even better would be one I can input... (10 Replies)
I need to remove new lines and carriage returns from csv file.
Is there anything other than sed and gwak by which we could achieve this ? Any suggestions ? (3 Replies)
Hi All -
I am in need of some help in formating the below file
Requirement -
1) replace newlines with space
2) replace '#~# ' with newline
-----------------------
sample inputfile a
I|abc|abc|aaa#~#
I|sddddd|tya|dfg
sfd
ssss#~#
I|tya1|tya2|dfg|sfd|aaa#~#... (5 Replies)
Hi Friends,
I have a data file with new lines.
How to remove the newlines and should be showed in one line.
I tried using the command
tr -d '\n' filename
sed 's/\n//g' file name
Ex: 1 abc hyd is actual record
but in our scenario showing it as
1 abc
hydthis record should be like... (5 Replies)
Discussion started by: victory
5 Replies
LEARN ABOUT HPUX
logingroup
group(4) Kernel Interfaces Manual group(4)NAME
group, logingroup - group file, grp.h
DESCRIPTION
contains for each group the following information:
o group name
o encrypted password
o numerical group ID
o comma-separated list of all users allowed in the group
The file is an ASCII file. Fields are separated by colons, and each group is separated from the next by a new-line. No spaces should sep-
arate the fields or parts of fields on any line. If the password field is null, no password is associated with the group.
There are two files of this form in the system, and The file exists to supply names for each group, and to support changing groups by means
of the utility (see newgrp(1)). provides a default group access list for each user via and (see login(1) and initgroups(3C)).
The real and effective group ID set up by for each user is defined in (see passwd(4)). If is empty, the default group access list is
empty. If and are links to the same file, the default access list includes the entire set of groups associated with the user. The group
name and password fields in are never used; they are included only to give the two files a uniform format, allowing them to be linked
together.
All group IDs used in or should be defined in
These files reside in directory Because of the encrypted passwords, these files can and do have general read permission and can be used,
for example, to map numerical group IDs to names.
The group structure is defined in and includes the following members:
NETWORKING FEATURES
NIS
The file can contain a line beginning with a plus which means to incorporate entries from Network Information Services (NIS). There are
two styles of entries: means to insert the entire contents of NIS group file at that point, and means to insert the entry (if any) for name
from NIS at that point. If a entry has a non-null password or group member field, the contents of that field overide what is contained in
NIS. The numerical group ID field cannot be overridden.
A group file can also have a line beginning with a minus these entries are used to disallow group entries. There is only one style of
entry; an entry that consists of means to disallow any subsequent entry (if any) for name. These entries are disallowed regardless of
whether the subsequent entry comes from the NIS or the local group file.
WARNINGS
Group files must not contain any blank lines. Blank lines can cause unpredictable behavior in system administration software that uses
these files.
Group ID (gid) 9 is reserved for the Pascal Language operating system and the BASIC Language operating system. These are operating systems
for Series 300/400 computers that can co-exist with HP-UX on the same disk. Using this gid for other purposes can inhibit file transfer
and sharing.
The length of each line in is limited to as defined in Because of this limit, users should not be listed in their primary group - only in
their additional groups.
If is linked to group membership for a user is managed by NIS, and no NIS server is able to respond, that user cannot log in until a server
does respond.
There is no single tool available to completely ensure that and are compatible. However, and can be used to simplify the task (see
pwck(1M)).
There is no tool for setting group passwords in
DEPENDENCIES
NIS
Here is a sample file:
Group has a gid of 1 and members and The group is ignored since it appears after the entry Also, the group has members and and the password
and group ID of the NIS entry for the group All groups listed in the NIS are pulled in and placed after the entry for The plus and minus
features are part of NIS. Therefore if NIS is not installed, these features cannot work.
FILES SEE ALSO groups(1), newgrp(1), passwd(1), setgroups(2), crypt(3C), getgrent(3C), initgroups(3C), passwd(4).
STANDARDS CONFORMANCE group(4)