06-02-2005
Searching for data on a specific line numbers
Hi,
I have a file on windows and have some unix utilitties available on windows. This file is very large and have over 5 million record. I am not able to open this file in Window Editor. I am trying to see bad data on a specific lines. I just have line numbers that has bad data. I need to see the data at that line number.
I am trying to see data let say on line 411108. I tried tail -n 411108 filename but it shows last 411108 lines instead of data on line 411108. I have tried grep and head command but it returns thousands of rows. I installed VIM on windows and tried opening the file but it only clocks for hours and does not open file. I had to kill the job.
Is there a unix command that I can use to view specific data at a certain line number. I also have sed and gawk utility available on windows.
Will appreciate any help....
Thanks
Raj
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I cannot figure this one out. I would like to do the following. I have a line that has 7 words. It is possible that the line can have 20 words too. I always want to show the 9th word and beyond. The 9th word will always change so I do not have something to search for, so I think... (1 Reply)
Discussion started by: ctcuser
1 Replies
2. Shell Programming and Scripting
Hey All
Can any one please suggest the procedure to search a part of line in a very large file in which log entries are entered with very high speed.
i have trued with grep and egrep
grep 'text text text' <file-name>
egrep 'text text text' <file-name>
here 'text text text' is... (4 Replies)
Discussion started by: NIMISH AGARWAL
4 Replies
3. Shell Programming and Scripting
hello,
I have got the following problem that I am hoping someone can help with please.
1. I have got the following text file (below) , the columns data are
'Test Day', 'Board', 'Betting Number'.
TEXT FILE
============================================
1 3 02-01-27-28-29-30
0 1... (1 Reply)
Discussion started by: jermaine4ever
1 Replies
4. Shell Programming and Scripting
Hello,
I have a problem which is giving me headache for days, can some please help. Please see code and text fiel below. Please see text in red for the problem I am facing
# Program gets an input x from user
while read line ; do
echo... (4 Replies)
Discussion started by: jermaine4ever
4 Replies
5. Shell Programming and Scripting
Hi guys,
I have txt file and I would need to extract all the contents between specific line numbers.
Line 1: apple
Line 2: orange
Line 3: mango
Line 4: grapes
Line 5: pine apple
I need to extract the content between line 2 and 4, including the contents of Line 2 and 4 so the ouput... (2 Replies)
Discussion started by: gowrishankar05
2 Replies
6. Shell Programming and Scripting
I have a data file in the format of
1234 xxx
1234 xxx
1234 xxx
1234 xxxI want to be able to calculate the following -
COLUMN1+((LINENUMBER-1)/365)
The output needs to preserve the 2nd column -
1234 xxx
1234.00274 xxx
1234.00548 xxx
What is the best way to do this? I am somewhat... (9 Replies)
Discussion started by: ncwxpanther
9 Replies
7. UNIX for Dummies Questions & Answers
Hi Folks,
I am searching for a pattern in logs through putty by opening the file in vi editor
and reaching to the last of the file by $ and then searching the pattern , lets say I have to search the pattern abc then it would be ?abc Now I want line numbers along with the matching pattern to be... (3 Replies)
Discussion started by: SankalpS
3 Replies
8. Shell Programming and Scripting
Hi,
I want to replace specific pattern "-2.0000 2" by "1.0000 3" on a particular line (line #5) in a file 1.dat. I have about 50 more files similar to 1.dat in which I want to do this correction.
Can you please suggest how can I make change only at this particular line of a file... (6 Replies)
Discussion started by: anuj06
6 Replies
9. UNIX for Dummies Questions & Answers
Hello,
:wall:
I have a 12 column csv file. I wish to delete the entire line if column 7 = hello and column 12 = goodbye. I have tried everything that I can find in all of my ref books.
I know this does not work
/^*,*,*,*,*,*,"hello",*,*,*,*,"goodbye"/d
Any ideas?
Thanks
Please... (2 Replies)
Discussion started by: Chris Eagleson
2 Replies
10. Shell Programming and Scripting
Hi guys,
I have been trying to do this, but... no luck so maybe you can help me.
I have a line like this:
Total Handled, Received, on queue Input Mgs: 140 / 14 => 0
I need to, get the number after the / until the =, to get only 14 .
Any help is greatly appreciated.
Thanks, (4 Replies)
Discussion started by: ocramas
4 Replies
LEARN ABOUT ULTRIX
xunmapwindow
XUnmapWindow(3X11) MIT X11R4 XUnmapWindow(3X11)
Name
XUnmapWindow, XUnmapSubwindows - unmap windows
Syntax
XUnmapWindow(display, w)
Display *display;
Window w;
XUnmapSubwindows(display, w)
Display *display;
Window w;
Arguments
display Specifies the connection to the X server.
w Specifies the window.
Description
The function unmaps the specified window and causes the X server to generate an event. If the specified window is already unmapped, has no
effect. Normal exposure processing on formerly obscured windows is performed. Any child window will no longer be visible until another
map call is made on the parent. In other words, the subwindows are still mapped but are not visible until the parent is mapped. Unmapping
a window will generate events on windows that were formerly obscured by it.
can generate a error.
The function unmaps all subwindows for the specified window in bottom-to-top stacking order. It causes the X server to generate an event
on each subwindow and events on formerly obscured windows. Using this function is much more efficient than unmapping multiple windows one
at a time because the server needs to perform much of the work only once, for all of the windows, rather than for each window.
can generate a error.
Diagnostics
A value for a Window argument does not name a defined Window.
See Also
XChangeWindowAttributes(3X11), XConfigureWindow(3X11), XCreateWindow(3X11), XDestroyWindow(3X11), XMapWindow(3X11) XRaiseWindow(3X11)
X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys
XUnmapWindow(3X11)