Sponsored Content
Top Forums Shell Programming and Scripting grep required data from two columns Post 302287859 by za_7565 on Monday 16th of February 2009 12:21:19 AM
Old 02-16-2009
Ahmed,
thanks for your help.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help required in grep command

Hi all, I need some help in grep command in a ksh script. Actually, i need to list all files having the file name like "BORD*.DAT" but exclude the files (from the list) having name like "BORD*mgt*.DAT". For that i used the following command: ls | grep "BORD*.DAT" | grep -v "BORD*mgt*.DAT" ... (4 Replies)
Discussion started by: panzer
4 Replies

2. Shell Programming and Scripting

shell script required to convert rows to columns

Hi Friends, I have a log file as below siteid = HYD spc = 100 rset = RS_D_M siteid = DEL spc = 200 rset = RS_K_L siteid = DEL2 spc = 210 rset = RS_D_M Now I need a output like column wise as below. siteid SPC rset HYD 100 RS_D_M (2 Replies)
Discussion started by: suresh3566
2 Replies

3. UNIX for Advanced & Expert Users

sort out the required data

Hi All, I have a file 1.txt which has the duplicate dns entries as shown: Name: 000f9fbc6738.net.in|Addresses: 10.241.66.169, 10.84.2.222,212.241.66.170 Name: 001371e8ed3e.net.in|Addresses: 10.241.65.153, 10.84.1.101 Name: 00e06f5bd42a.net.in|Addresses: 10.72.19.218,... (6 Replies)
Discussion started by: imas
6 Replies

4. UNIX for Dummies Questions & Answers

Suggestion to convert data in rows to data in columns

Hello everyone! I have a huge dataset looking like this: nameX nameX 0 1 2 2 2 2 2 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 ............... nameY nameY 2 2 2 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 ..... nameB nameB 0 1 2 2 2 2 2 2 2 2 1 2 2 2 1 2 2 2 ..... (can be several thousands of codes) and I need... (8 Replies)
Discussion started by: kush
8 Replies

5. Shell Programming and Scripting

Checking required columns in the file

Hi, File contains with TAB delimeter file,i want check the 2,3 are not null test1@gmail.com 100 test test2@gmail.com 101 test test3@gmail.com test test4@gmail.com 102 OUTPUT test1@gmail.com 100 test test2@gmail.com 101 test Please help me with one single command in... (2 Replies)
Discussion started by: muralikri
2 Replies

6. Shell Programming and Scripting

Checking the required columns in File

Hello Experts, File contains 10 columns with | delimeter. 1,3,4,5,7,9 columns are required columns means it should contains values. i need those records, rest of it will contain or not contain data. test1.txt: a@a.com|a|b|c|d|e|f|g|h|i |a|b|c|d|e|f|g|h|i b@b.com|a||c|d|e|f|g|h|i... (7 Replies)
Discussion started by: muralikri
7 Replies

7. Shell Programming and Scripting

Required help to print diff columns for 2 patterns using awk

Hi All, I need help for below scenario : I have a principals.xml_24092012backup file : cat principals.xml_24092012backup </user> <user username="eramire" password="2D393C01720749256303D204826A374D9AE9ABABBF8A"> <roleMapping rolename="VIEW_EVERYTHING"/> </user> ... (2 Replies)
Discussion started by: kiran_j
2 Replies

8. Shell Programming and Scripting

Help Need to fetch the required data

Hi Guys, Am in need of your help one more time on my real data. I have a file which contains more than thousand lines of data Live data shown for 4 iterations. We have more than thousand lines of data:- -------------------------------------------------------------------------- ... (4 Replies)
Discussion started by: rocky2013
4 Replies

9. UNIX for Beginners Questions & Answers

UNIX shell script required to read two columns from xml

Hello All, I am new to unix scripting. I need to read FROMINSTANCE, FROMFIELD from below XML code and need to write a script for insert into SQ_EPIC values( "DID", "PROJECT_NAME") Select DID, PROJECT_NAME from EPIC<CONNECTOR TOINSTANCETYPE="Source Qualifier" TOINSTANCE="SQ_EPIC" TOFIELD="DID"... (7 Replies)
Discussion started by: sekhar.lsb
7 Replies

10. UNIX for Beginners Questions & Answers

How to print multiple required columns dynamically in a file using the header name?

Hi All, i am trying to print required multiple columns dynamically from a fie. But i am able to print only one column at a time. i am new to shell script, please help me on this issue. i am using below script awk -v COLT=$1 ' NR==1 { for (i=1; i<=NF; i++) { ... (2 Replies)
Discussion started by: balu1234
2 Replies
DICODCONFIG(8)						       Debian User's Manual						    DICODCONFIG(8)

NAME
dicodconfig - write dicod database configuration section SYNOPSIS
dicodconfig [-hlovw] [--help] [--list] [--order] [--version] [--write] DESCRIPTION
dicodconfig generates a complete dicod database configuration section for available dictionary databases found in /usr/share/dictd/ (or possibly elsewhere if an optional order override file is present). If a dictionary database contains a <basename>.suffix and/or a <base- name>.word file, appropriate index_suffix and index_word entries are created. Its output file /var/lib/dicod/dictorg-db.list may then be included from the dicod configuration file /etc/dicod.conf with an ``#include /var/lib/dictd/dictorg-db.list'' line. See infodico for an explanation of dicod configuration. In Debian, dicodconfig is automatically invoked upon installation or removal of dictionary database packages, so most users will never need to invoke it by hand. DATABASE ORDER The default order in which database entries are written is hard coded into dicodconfig, but it may be overridden via the optional order override file /etc/dicod/dicod.order. This may be desired because dicod returns definitions from dictionary databases in the order in which they are listed in its configuration file. The order override file may also be used to include local dictionary databases which may not necessarily reside in /usr/share/dictd/. /etc/dicod/dicod.order, if present, should be a whitespace separated list of basenames and directories. It may also include comments starting with # and extending to the end of the line. Dictionary database entries will be generated only for those databases found via basename and directory entries in the default order (or the order override file, if present), and they will be generated in the order in which these entries appear. No more than one dictionary database entry of any given name will be generated. Entries without a leading / are relative to /usr/share/dictd/. Entries without a trailing / are basenames. A dictionary database entry is generated if <basename>.index and <basename>.dict.dz or <base- name>.dict are present. Entries with a trailing / are directories. A dictionary database entry is generated for each <name> where <directory>/<name>.index and <directory>/<name>.dict.dz or <directory>/<name>.dict are present. The default order includes the directories /usr/share/dictd/ , /usr/share/dico/ as its final entry so that if a previously unknown dictio- nary database (one not explicitly mentioned in the default order) is installed, its dictionary database entry will still be generated. An order override file should also use this technique, both for /usr/share/dictd/ , /usr/share/dico/ and for any other directory where local dictionary database might be installed. The -o option may be used to make dicodconfig display the default order information along with the order override information if /etc/dicod/dicod.order is present. DUMMY ENTRY If no dictionary databases are found (via basename or directory entries in the default order or the order override file), a dummy dictio- nary database entry will be generated with /dev/null for both data and index. This allows dicod to start without error. DATABASE ALIASES If an executable script named /etc/dicod/dicodconfig.alias exists, dicodconfig will filter database names through it. The script can be bash, sed, perl, or whatever. Although dico -D will display database names of any length, names longer than 16 characters are displayed in a ragged format. Appropriate entries in this alias file can be used to cause dico -D to display the database names in a reasonable format. OPTIONS
-w, --write Write database section to /var/lib/dicod/dictorg-db.list. -l, --list List database section to standard out. -o, --order Display database order information. -h, --help Display a usage message and exit. -v, --version Display version information and exit. FILES
/var/lib/dicod/dictorg-db.list Output of dicodconfig. /etc/dicod.conf dicod configuration file which "includes" /var/lib/dicod/dictorg-db.list. /etc/dicod/dicod.order Optional dicodconfig order override file. SEE ALSO
dicod(8) BUGS
Older dictionary database packages did not automatically invoke dicodconfig upon installation and removal, so you may need to do so manu- ally (after which, you should restart dicod). AUTHOR
(Ahmed El-Mahmoudy) Based on dictdconfig(8) By Kirk Hilliard <kirk@debian.org>. DEBIAN
April 5, 2009 DICODCONFIG(8)
All times are GMT -4. The time now is 12:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy