![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Carreer:Networking Programming in Unix (C programming Language) | vibhory2j | UNIX for Dummies Questions & Answers | 5 | 09-05-2008 07:57 PM |
| Unix Systems Programming Vs Unix Programming | BCarlson | Shell Programming and Scripting | 0 | 05-24-2006 02:34 PM |
| RPC Programming | emeralddream | High Level Programming | 1 | 02-23-2005 11:34 AM |
| c programming or unix programming!? | moxxx68 | High Level Programming | 1 | 03-30-2004 08:53 AM |
| Programming | CreamHarry | High Level Programming | 3 | 03-07-2002 03:09 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hello all!!
I am new to programming, and to this forum. ![]() I am having sort of a problem. Me and my coworker are working on a code, both of us are stumped on a few things. One is we have a whole log file, i have found how to extract by column, but not by row. I need to extract by both. ![]() For example.. I need rows 302 - 463 and columns 53-68 This is just a small portion of the log file, but it is all i need to "compare" to another file. i hope this is clear enough for everyone, please feel free to ask any other questions if not. thanks =) |
|
||||
|
It would be better if we use -f in stead of -c in cut command.
Quote:
|
|
|||||
|
Quote:
the -c parameter extracts data based on absolute character position Based on the initial user request Quote:
|
|
||||
|
if u can get the row number, u can use "sed" as following
sed -e '1,301d' -e '364,$d' mylog >log_result as it delete from row number 1 to numer 301 , and from 364 to the end of ur log, then write the rest of the log to log_result |
|
||||
|
Thanks again everyone,
I have another question I have two files, that have the same data in them excluding a few things. I want to compare these two files but they are not in the same order. for example.. all of the data in the file looks similar to this E00401001D011029 E00401001D01102D etc but they are not in the same order, and when i use the diff file.txt file2txt command it spits out a bunch of random stuff that i dont want, i just want to compare the two files and find the differances. Is there a way i can sort them so they look alike and then it will find the differances? or is there a way i can look through them and find the differances that way. Thanks a bunch! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|