Hi Everyone,
I have one a.txt:
a b 001 c
b b 002 c
c c, not 002 c
The output should be
001
002
002
If i use cut -f 3 -d' ', this does not work on the 3rd line, so i thought is any way to cut the field counting from the end? or any perl thing can do this?:confused:
... (3 Replies)
Hi,
I've internally searched through forums for about 2+ hours. Unfortunately, with no luck. Although I've found some cases close to mine below, but didn't help so much.
Actually, I'm in short with time. So I had to post my case. Hoping that you can help.
I have 2 files,
FILE1
... (0 Replies)
Hi,
I've internally searched through forums for about 2+ hours. Unfortunately, with no luck. Although I've found some cases close to mine below, but didn't help so much.
Actually, I'm in short with time. So I had to post my case. Hoping that you can help.
I have 2 files,
FILE1
... (1 Reply)
Hi Friends,
Need Help. I have file1.txt as
File1.txt
|123|A|7267|Hyder|Cross|Sell|7801
|995|A|7051|2008|Lunar|New|Year|Promotion|7801
|996|A|7022|Q108|Targ|Prospect|&|SSCC|Savings|Promo|7801
|997|A|7182|Q1|Feb-Apr|08|Credit|ITA|PA|SBA|Campaign|7801
File2.txt... (7 Replies)
Hi Freinds,
I have 2 files . one is source.txt and second one is target.txt. I want to keep source.txt as baseline and compare target.txt. please find the data in 2 files and Expected output.
Source.txt
1|HYD|NAG|TRA|34.5|1234
2|CHE|ESW|DES|36.5|134
3|BAN|MEH|TRA|33.5|234... (5 Replies)
Hello,
I have a file:
xandyandz
x & y & z
x*y*z*a
I require output as:
zandyandx
z & y & x
a*z*y*x
here all lines have different field seperator (and & * )based on that i want to reverse the column of a file.
Pl. help. (8 Replies)
I have a .CSV file (file.csv) whose data are all enclosed in double quotes. Sample format of the file is as below:
column1,column2,column3,column4,column5,column6, column7, Column8, Column9, Column10
"12","B000QRIGJ4","4432","string with quotes, and with a comma, and colon: in... (3 Replies)
Hello everybody :)
I have specific problem when i use
rev | uniq -f 3 -c | revORIGINAL Output-
(without rev | uniq -f 3 -c | rev)
tibenska13 Oct 30 00:26firsth revOUTPUT-
62:00 03 tcO 31aksnebitafter uniq -f 3 -cOUTPUT-
19 62:00 03 tcO 31aksnebitafter next revOUTPUT-
tibenska13 Oct 30 00:26... (7 Replies)
Discussion started by: netsys
7 Replies
LEARN ABOUT REDHAT
revnetgroup
REVNETGROUP(8) Reference Manual REVNETGROUP(8)NAME
revnetgroup - generate reverse netgroup data
SYNOPSIS
/usr/lib/yp/revnetgroup [-u|-h]
DESCRIPTION
Revnetgroup processes the standard input in netgroup(5) format into what is called reverse netgroup form. That is, where the original file
shows netgroup memberships in terms of which members reside in a particular group, the reverse netgroup format specifies what groups are
associated with a particular member. This information is used to generate the netgroup.byuser and netgroup.byhosts NIS maps. These reverse
netgroup maps are used to help speed up netgroup lookups, particularly for the innetgr library function.
The revnetgroup command prints its results on the standard output. It is usually called only by /var/yp/Makefile when rebuilding the NIS
netgroup maps.
OPTIONS
The revnetgroup command supports the following options:
-u Generate netgroup.byuser output; only username information in the original netgroup file is processed.
-h Generate netgroup.byhost output; only hostname information in the original netgroup file is processed.
Note at least one of the both flags must be specified.
FILES
/var/yp/Makefile The Makefile to build the NIS databases
/etc/netgroup the default netgroup database file. This file is most often found only on the NIS master server
SEE ALSO getnetgrent(3), netgroup(5),
AUTHOR
revnetgroup was written by Thorsten Kukuk <kukuk@suse.de>.
YP Server August 2001 REVNETGROUP(8)