Search Results

Search: Posts Made By: alienated
15,682
Posted By alienated
Thank you for your prompt reply. I wish to...
Thank you for your prompt reply.

I wish to perform some additional functions in your current command. I would like to get the key and value pair.


FS="="
split($i, MTH)
key = MTH[1]
value...
15,682
Posted By alienated
Awk search for string pattern in delimited file
I've got a semicolon delimited file. I would like to search for fields that match a pattern, and not hardcoded eg "mth".
*th=something

If the delimited field fulfills this condition, eg....
1,581
Posted By alienated
Replace a string within 2 points and save it
I've got this xml file


<file1>
some text here
</file1>

<file2>
some text here
</file2>


How do I change the text in element file1 to a sentence that I want, defined by variable...
9,619
Posted By alienated
yes, to clarify, i need the variable to store the...
yes, to clarify, i need the variable to store the position of the place that i need to be blank, not just the first 2 fields, of which scottn's example works beautifully. thanks.
9,619
Posted By alienated
Sed save changes to same file in loop
I have got problems saving sed changes to the same file in a loop.
Basically I want the delimited value in every line of the file to be set to blank according to the value stored in var. var can be...
3,694
Posted By alienated
Replace a string after n semicolon every line
I have a file that is formatted in this way.


a1;b2;c33;d4;e5;e;f;f;f;s
d;ds;d;a;v;b;g;gr;r;rt;fdf
s1;s2;s2;s3;s4;

b1;f2;g3;h4;a3c4e;xcsd;fds;
sd2;fs4;fs2;sdf3;



I want to...
2,213
Posted By alienated
Separating delimited file by pattern with exclusion list
I have a file with the contents below

jan_t=jan;feb_t=feb;mar_t=mar;year=2010
jan_t=null;feb_t=feb;mar_t=mar;year=2010
jan_t=jan;feb_t=feb;mar_t=mar;year=2010

I want to extract out all the...
3,728
Posted By alienated
Datetime Format 'yyyymmddmiss' Calculation
Given a time format yyyymmddmiss

201007221403

How can I add or minus minutes such that it becomes

201007221348

when I minus away 15 minutes from the time?

Also, given a time frame,...
5,123
Posted By alienated
Thanks, this works perfectly fine. If I want...
Thanks, this works perfectly fine.

If I want to print the original line in cases when the letters C,U,D is not found


2010-04-30-10-19-31.txt:X The user has executed a record


how should i...
5,123
Posted By alienated
I got a syntax error while running this. What...
I got a syntax error while running this. What could be the problem? i'm not familiar with awk command. thank you.
5,123
Posted By alienated
ksh script to process grep output
Hi,

I would like to know how can i pipe the following output of grep into a predefined output format

This is the output of the grep command grep record *.txt | sort -r
...
Showing results 1 to 11 of 11

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