Sponsored Content
Top Forums Shell Programming and Scripting Why do we use sort before compare ? Post 302257860 by joeyg on Thursday 13th of November 2008 08:21:00 AM
Old 11-13-2008
Hammer & Screwdriver

Quote:
I will match my first line of my first book with all the pages of the second phone book even if they are not sorted.
Sound more like a grep command then.

egrep -f "myfile" "mykeyword"
(or something like that)

Where you are checking to see if someone from the first book exists on any page from the second book.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sort and compare file

If I have 3 kinds of files in directory DATA1: FileA.20060315.dat, FileB.20060315.dat, FileC.20060315.dat FileC.20060316.dat FileA.20060317.dat, FileB.20060317.dat FileA.20060318.dat, FileB.20060318.dat, FileC.20060318.dat If 3 files have the same date then run $cat FileA.20060315.dat... (3 Replies)
Discussion started by: sabercats
3 Replies

2. UNIX for Dummies Questions & Answers

sort and compare files

Hi, I have around 14-15 files and i want to sort all the files and then compare. I dont want to sort them and store in a different file and then compare. I want to compare two files at a time. Is there a way we can do this using a single command? (5 Replies)
Discussion started by: dnat
5 Replies

3. UNIX for Advanced & Expert Users

Script to sort the files and append the extension .sort to the sorted version of the file

Hello all - I am to this forum and fairly new in learning unix and finding some difficulty in preparing a small shell script. I am trying to make script to sort all the files given by user as input (either the exact full name of the file or say the files matching the criteria like all files... (3 Replies)
Discussion started by: pankaj80
3 Replies

4. Shell Programming and Scripting

comm command -- Sort and compare two files

Team, I have two files and I am trying to find the lines unique to file1. So i have executed the below command at shell prompt and got the correct results comm -23 <(sort test) <(sort test1) When i run the same command in Bash shell script, i got the correct results. But when i run... (5 Replies)
Discussion started by: forums123456
5 Replies

5. Shell Programming and Scripting

Sort help: How to sort collected 'file list' by date stamp :

Hi Experts, I have a filelist collected from another server , now want to sort the output using date/time stamp filed. - Filed 6, 7,8 are showing the date/time/stamp. Here is the input: #---------------------------------------------------------------------- -rw------- 1 root ... (3 Replies)
Discussion started by: rveri
3 Replies

6. Shell Programming and Scripting

How to sort and compare files in more efficient manner?

Hello All, Iam using below method to sort and compare files. First iam doing sorting and changing the same file and then doing comparing and taking the final result to another file. sort -o temp.txt file1 mv temp.txt file1 sort -o temp.txt file2 mv temp.txt file2 sort -o temp.txt... (6 Replies)
Discussion started by: Vikram_Tanwar12
6 Replies

7. Shell Programming and Scripting

UNIX compare, sort lines and append difference

Hi, I have a file that needs to be converted: content is: a, b, 4 a ,b, 5 x, y, 1 a, b, 1 x, y, 3 how can i get: a, b, 1|4|5 x,y 1|3 (1 Reply)
Discussion started by: nike27
1 Replies

8. Shell Programming and Scripting

UNIX compare, sort lines and append difference

To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that needs to be really converted. Here is the extract: ES FP,B1ES FP,70000,I,SL22,SL22 (70000) ES... (0 Replies)
Discussion started by: nike27
0 Replies

9. Shell Programming and Scripting

UNIX compare, sort lines and append difference

To make it easier, i gave following example. It is not homework or classwork. Instead, i have a huge csv file dump from tsql with 15 columns and around 300 rows. I was able to extract content that needs to be really converted. Here is the extract: ES FP,B1ES FP,70000,I,SL22,SL22 (70000) ES... (8 Replies)
Discussion started by: nike27
8 Replies

10. UNIX for Beginners Questions & Answers

Sort by record column, Compare with conditons and export the result

Hello, I am new to Unix and would like to seek a help, please. I have 2 files (file_1 and file_2), I need to perform the following actions. 1 ) Sort the both file by the column 26-36 (which is Invoice number) what is sort command with the column sort? 2) Compare the file_1.sorted and... (3 Replies)
Discussion started by: Usagi
3 Replies
books(3)							       Coin								  books(3)

NAME
books - Books Related to Open Inventor / Coin Here is a list of some of the better books for people that invested in software development with Open Inventor. If you have suggestions for additional books that ought to go on this list, please feel free to tell us about it. The Inventor Mentor (subtitle 'Programming Object-Oriented 3D Graphics with Open Inventor') This is an excellently written, detailed, tutorial-style introductory book for Open Inventor that takes you through all the fundamental design principles applied in the Open Inventor API, richly illustrated and with numerous, well documented code examples. The Inventor Mentor is getting a bit old, but do not let that put you off. It is as valid today as it was the day it was written, and we heartily recommend this book for anyone learning to use Open Inventor. ISBN 0-201-62495-8. You might also be able to find this book as a pdf file online, but we recommend having it in print. The Inventor Toolmaker This book explains how Open Inventor was designed for being extended by the users, and walks you through how to develop your own components that work with all aspects of Coin. ISBN 0-201-62493-1. You might also be able to find this book as a pdf file online, but we recommend having it in print. The Annotated VRML2.0 Reference Manual This book covers the VRML97 (aka VRML 2.0) standard, which Coin has implemented with its Inventor/VRMLnodes/* classes, which is an extension made beyond the Open Inventor V2.1 API. The VRML97 format has some significant differences from the Inventor and VRML1 formats, so it is a useful book if you want to use that part of Coin. ISBN 0-201-41974-2. You will find the specification documents for VRML97 online at http://www.web3d.org/. The Open GL Programming Manual This is the bible when it comes to OpenGL programming and is relevant for Open Inventor extenders that develop new nodes that implement or affect Open Inventor OpenGL rendering. There are many editions of this book since it is updated whenever new versions of OpenGL are standardized and comes out, so check that you have identified the latest edition if you order one. The Open Inventor C++ Reference Manual Although this book is directly relevant for Open Inventor, it does only cover the Open Inventor 2.1 API. This information is more or less also covered in the online doxygen doc for Coin, where you have it hyperlinked, and can also be generated offline from the Coin sources to have locally, so we do not think this book is very useful to have in print. We mention it anyway since it is an official documentation book for Open Inventor. ISBN 0-201-62491-5. Version 3.1.3 Wed May 23 2012 books(3)
All times are GMT -4. The time now is 08:58 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy