Search Results

Search: Posts Made By: Sharmila_P
2,686
Posted By Sharmila_P
Please tell how i can resolve this issue?or is...
Please tell how i can resolve this issue?or is there any other way to get the result?
2,686
Posted By Sharmila_P
Hi, Its not helping as I don't have this...
Hi,

Its not helping as I don't have this version.
I tried something like this.
Code:
let noofdays=$1
let totaldays=24*noofdays
DATE_STAMP=`TZ=CST-$totaldays date +%d/%b/%Y `
echo...
2,686
Posted By Sharmila_P
To get previous or future dates based on input value
Hi,
I need something like,
if the input date is 24/Aug/2008 and the inputvalue is +8 then the result should be 1/Sep/2008 (8 days after the input date)
if the input date is 24/Aug/2008 and the...
3,926
Posted By Sharmila_P
hi, actually,my need is like,in the given file i...
hi, actually,my need is like,in the given file i have to find the line which has the keyword "Not authenticated by System" and
"authenticated by System".and i have to get the corresponding names...
3,926
Posted By Sharmila_P
Can anyone tell me How I can get the result?
Can anyone tell me How I can get the result?
11,534
Posted By Sharmila_P
Could you please tell me how I can implement this?
Could you please tell me how I can implement this?
5,073
Posted By Sharmila_P
removing the duplicate lines in a file
Hi,

I need to concatenate three files in to one destination file.In this if some duplicate data occurs it should be deleted.
eg:
file1:
-----
data1 value1
data2 value2
data3 value3
...
3,926
Posted By Sharmila_P
My code is like this. for i in $(grep -n...
My code is like this.

for i in $(grep -n data11 file.txt|cut -d: -f1)
do
sed -n "${i},${i}p" logfile.txt|cut -d" " -f5 >> msg.txt
sed -n "${i},${i}p" logfile.txt|cut -d: -f1 >> msg.txt
...
3,580
Posted By Sharmila_P
its working fine.thanks
its working fine.thanks
3,580
Posted By Sharmila_P
I need to retrieve more than 1 field in all the...
I need to retrieve more than 1 field in all the lines.
code:
for i in $(sed = filename.txt | sed 'N;s/\n/ /' | cut -d " " -f1)
do
val1=`sed -n "${i},${i}p" filename.txt | cut -d " " -f1`...
3,580
Posted By Sharmila_P
sed command to get the total lines
hi,
I am using the following code to get the first field of all the lines in a file using sed command.But its not printing the last line.Why it is so and how can i read the different fields of each...
3,926
Posted By Sharmila_P
I am doing some grep operation and some other...
I am doing some grep operation and some other operations and finding this lineno.From this line I want to go back and find the immediate matched line with that timestamp.
11,534
Posted By Sharmila_P
Validating the input date format
I have one script.for that the inputs are fromdate(dd/mon/yyyy) and todate(dd/mon/yyyy).
How i can validate the input format?for eg.27/08/2008 is not valid.27/aug/2008 or 27/Aug/2008 are valid.
and...
5,900
Posted By Sharmila_P
For the same query,if the input file is like...
For the same query,if the input file is like this(below),I tried getting the lines by using the field separator (FS) as blank space.
I used the code like this..
BEGIN{
FS = "[ ]";
But its not...
3,926
Posted By Sharmila_P
search for the matched pattern by tracing back from the line
Hi,

I want to grep the line which has 'data11'.then from that line, i need to trace back and find out the immediate line which has the same timestamp of that grepped line.
for eg:
log file:...
22,386
Posted By Sharmila_P
its not working. Is there any other way? or is...
its not working.
Is there any other way? or is there any other command to write the value into a file with the tab delimiter?
5,900
Posted By Sharmila_P
I am getting the error when i run this. awk:...
I am getting the error when i run this.
awk: syntax error near line 1
awk: bailing out near line 1

As i am new to awk,could you pls explain what exactly its doing.and i want to redirect the...
22,386
Posted By Sharmila_P
append data in a file by using tab delimiter
Hi,

I need to append the data in to a file by using tab delimiter.
eg:
echo "Data1" >> filename.txt
echo "\t" >> filename.txt (its not working)
echo "Data2" >> filename.txt.

the result...
5,900
Posted By Sharmila_P
retrieve lines from file which fall under the given date range
Hi,

I need to retrieve the lines which fall under the given date range.
eg:In a log file,i have the lines which will have the timestamp.
the input will be some date range.eg: from...
Showing results 1 to 19 of 19

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