Search Results

Search: Posts Made By: alinaqvi90
1,324
Posted By alinaqvi90
sorry mate. Got it. I didnt fully understand your...
sorry mate. Got it. I didnt fully understand your original example.

thanks a lot :)
1,324
Posted By alinaqvi90
can some one suggest some thing generic please...
can some one suggest some thing generic please that would work on all general strings that have a space and a colon in them rather than a string just containing time in a specific format.

thanks
15,627
Posted By alinaqvi90
thanks mate. Issue resolved :)
thanks mate. Issue resolved :)
15,627
Posted By alinaqvi90
using cut command right to left
Hi guys

I have variable that contains a full directory path.

var=/tmp/a/b/c/d

I want to be able to extract different directories in the path right to left while using / as the delimiter....
1,324
Posted By alinaqvi90
replacing ' ' and :'s with _'s in a variable
Hi guys

In my shell script I have a variable that contains a string that contains the current time.

I want to replace the spaces and colons in the value with underscores.


TIME=`date`...
8,341
Posted By alinaqvi90
hi guys Thanks for your replies so far ...
hi guys
Thanks for your replies so far

This pattern doesnt do anything :
sed -n '/^12:00/,/^12:03/p' event.log > new_event.log

And the grep ones I believe will only extract lines that...
8,341
Posted By alinaqvi90
extracting part of a text file
Hi guys

So I have a very large log file where each event is logged along with the time that it occurred.

So for e.g. The contents of the file look like:

...
12:00:07 event 0 happened....
Showing results 1 to 7 of 7

 

Featured Tech Videos

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