Search Results

Search: Posts Made By: Whit3H0rse
4,766
Posted By Whit3H0rse
Finaly! I google little about this substr...
Finaly! I google little about this substr funkcion and this fine blog solved my problem:
Unix Simplicity: Awk substr function (http://unix-simple.blogspot.com/2006/10/awk-substr-function.html)

Ty...
4,766
Posted By Whit3H0rse
Yes it works with filename as...
Yes it works with filename as bookcollection20100730, but with

bookcollection_20100730_1234.csv

It doesn't work with that command:
ls | awk -F \_ -v start=20100730 -v end=20100732...
4,766
Posted By Whit3H0rse
Ty people, this works great :) ----------...
Ty people, this works great :)

---------- Post updated at 08:42 AM ---------- Previous update was at 03:05 AM ----------



SED version works but it is slow because of | sort|, so I prefer...
8,037
Posted By Whit3H0rse
Can't use that option on my solaris: grep:...
Can't use that option on my solaris:

grep: illegal option -- P
8,037
Posted By Whit3H0rse
Do you know any tutorial where can I learn to...
Do you know any tutorial where can I learn to make custom search codes?
What I need is normal grep + modification so that grep skips to next line when only one match is found in line or when...
8,037
Posted By Whit3H0rse
Yes you are right, above example is not much...
Yes you are right, above example is not much faster (if any) :/

@matrixmadhan how tell perl or grep search to stop searching after 13 field and skip to next line, example ? (oneliner ofc)
8,037
Posted By Whit3H0rse
Speeding/Optimizing GREP search on CSV files
Hi all,

I have problem with searching hundreds of CSV files, the problem is that search is lasting too long (over 5min).

Csv files are "," delimited, and have 30 fields each line, but I always...
4,766
Posted By Whit3H0rse
Oke, this works great but how to include the...
Oke, this works great but how to include the "start" and "end" variables into results. Because when i enter range for today 2010.08.29 - 2010.08.29, it display nothing.

Now, it displays this for...
4,766
Posted By Whit3H0rse
This doesn't work, I forgot to mention that there...
This doesn't work, I forgot to mention that there si time append so filenames are bookcollection20100728_001500.

Time doesn't matter to me, just yy, mm and dd. Any new suggestion or reformulation?...
4,766
Posted By Whit3H0rse
Searching by date range from filenames
Hello all,

i have tons of files in folder named like this (yyyymmdd):

bookcollection20100729
bookcollection20100730
bookcollection20100731
bookcollection20100801
bookcollection20100802
...
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 03:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy