Is this a homework assignment? This is the wrong forum for homework assignments.
Have you looked at your input file? Do you see any lowercase letters in your input file?
Do you see any occurrences of CONNECT or connect in your input file?
Your command:
is looking for the string atom (in lowercase) and printing every line that does not contain a word that matches that string (preceded by its line number) from the files connect, ter, and 4hkd.txt.
Hey Guys,
Wondering if there is a way to do the following
I have a file called test.txt
abc
def
abc
abc
def
I have a pattern file called pattern.txt containing the following
abc
def
I want to do a count, but have it display the count value preceeding each line like grep -n (2 Replies)
Hello
I want to grep data from header of the files . The header conatins data in this format .
# $maint$ test1
# $product$ TTT
I want to store maint name and product name with path of file . (12 Replies)
Hi, i have number of files in a directory to be processed. the problem is some of the files does not have a header and the process is giving an error of no header found.
example of good file :
file1
HDR|20080803233401
record 1
record 2
TRA|2
example of a bad file in the same dir
... (6 Replies)
I use grep to check for a string that validates data in a file, it works great but the problem is that the file is becoming too big and gerp has started hurting the response time to users. Since I only need to find the first occurrence I have been looking for ways to stop grep for scanning the rest... (8 Replies)
/usr/xpg4/bin/grep -e "Type" / datarecords.txt
output
datarecords.txt: male | datarecords.txt: male | datarecords.txt: female
i wanna the output to be
:male | :male | :female
at the end not to appear the filename fom grep command :D :D (3 Replies)
Hello Everyone,
I am stuck with one issue while working on abstract flat file which i have to use as input and load data to table.
Input Data-
------ ------------------------ ---- -----------------
WFI001 Xxxxxx Control Work Item A Number of Records
------ ------------------------... (5 Replies)
I am trying to program a script that is using grep to find lines in a file in my home directory, and then use a pipe command to copy what is shown into different files in a different directory to create backup files. When I run it, though, it only creates a copy of the file that grep was going... (7 Replies)
Hello,
I have some tab delimited text files with a three header rows. The headers look like, (sorry the tabs look so messy).
index group Name input input input input input input input input input input input... (9 Replies)
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
LEARN ABOUT CENTOS
tk_internatom
Tk_InternAtom(3) Tk Library Procedures Tk_InternAtom(3)__________________________________________________________________________________________________________________________________________________NAME
Tk_InternAtom, Tk_GetAtomName - manage cache of X atoms
SYNOPSIS
#include <tk.h>
Atom
Tk_InternAtom(tkwin, name)
const char *
Tk_GetAtomName(tkwin, atom)
ARGUMENTS
Tk_Window tkwin (in) Token for window. Used to map atom or name relative to a particular display.
const char *name (in) String name for which atom is desired.
Atom atom (in) Atom for which corresponding string name is desired.
_________________________________________________________________DESCRIPTION
These procedures are similar to the Xlib procedures XInternAtom and XGetAtomName. Tk_InternAtom returns the atom identifier associated
with string given by name; the atom identifier is only valid for the display associated with tkwin. Tk_GetAtomName returns the string
associated with atom on tkwin's display. The string returned by Tk_GetAtomName is in Tk's storage: the caller need not free this space
when finished with the string, and the caller should not modify the contents of the returned string. If there is no atom atom on tkwin's
display, then Tk_GetAtomName returns the string "?bad atom?".
Tk caches the information returned by Tk_InternAtom and Tk_GetAtomName so that future calls for the same information can be serviced from
the cache without contacting the server. Thus Tk_InternAtom and Tk_GetAtomName are generally much faster than their Xlib counterparts, and
they should be used in place of the Xlib procedures.
KEYWORDS
atom, cache, display
TkTk_InternAtom(3)