Search Results

Search: Posts Made By: misenkiser
2,494
Posted By misenkiser
Hi Anbu, your solution works fine ... but...
Hi Anbu,

your solution works fine ...
but could you pls explain how this line works ?

printf("%s%s",$k,k == n ? "" : "|")


Thnx
2,494
Posted By misenkiser
The code needs to be modified in follg case as...
The code needs to be modified in follg case as well if the character is already double quoted then it should be left as it is

i/p string
"123"||||"abc"||""678""||||"abc|"|2

o/p reqd...
2,494
Posted By misenkiser
awk help
Hi,

I have a requirement in which all double quotes around strings have to be removed except for those having pipe as delimiter in between strings

for eg

i/p string ...
22,701
Posted By misenkiser
No Guys , I was talking about some utility...
No Guys ,

I was talking about some utility like we had PCTOOLS in DOS or something like that
Taking backups and snapshots are all fine but what if someone does delete something ...

shouldn't...
22,701
Posted By misenkiser
Undelete files in Unix
Hi

Is there any way to restore files accidentally deleted in Unix
(other than rm -i)
23,823
Posted By misenkiser
Now how do i capture all lines till EOF?
Now how do i capture all lines till EOF?
23,823
Posted By misenkiser
Get line number
Hi,

How do i get line number of a variable which contains entire line
and then capture all lines till EOF ?

For eg .

Variable vr will contain the string "this is a string"

I need to get...
2,550
Posted By misenkiser
I got the solution now ... systemdate=`date...
I got the solution now ...

systemdate=`date '+%m-%d-%Y'`
awk -v date=$systemdate '$0 ~ /start/ && $0 ~ date {print $0}' file
2,550
Posted By misenkiser
No Kumar ,this solution does not work ... it...
No Kumar ,this solution does not work ... it gives the o/p even if the date in the line is not sysdate

The requirement is only to give o/p when the date in the line is systemdate
not any date
2,550
Posted By misenkiser
Replace start with header
Replace start with header
2,550
Posted By misenkiser
Sample input start uiyuyuiyyuiy...
Sample input


start uiyuyuiyyuiy 11-15-2006 gdterefeyeyeuue
jhjkhj
jkhjkjk
stop
2,550
Posted By misenkiser
Hi Kumar, the date portion will be system...
Hi Kumar,

the date portion will be system date always so it should not take any other date than this
2,550
Posted By misenkiser
Awk help
Hi,

I have a text file in which I have to search for 2 keywords simultaneously
one of them will be a constant eg . HEADER and the other will be the system date in MM-DD-YYYY format how do i do...
25,852
Posted By misenkiser
In all the responses it has been assumed that the...
In all the responses it has been assumed that the position 5-10 will be the last portion in the file
however the line length may be upto 80 chars
whereas the search should be only for 5-10 position
25,852
Posted By misenkiser
check for not null string in file
Hi,

If, in a text file a string is expected at a certain fixed position(for eg at position 5 or from 5-10 on every line)
how to check whether data is present on that position or not?


Thnx in...
3,548
Posted By misenkiser
Can this awk statement be modified if the 2...
Can this awk statement be modified if the 2 keywords can be preceded by blank spaces before them ?
3,548
Posted By misenkiser
the keywords START and END are not the only...
the keywords START and END
are not the only words in the line so the code fails

START .........................
.....
.....
.....
......
END ............................

I only know that...
3,548
Posted By misenkiser
Select last block from a file
Hi,

I have to always select last portion of a block identified by 2 fixed keywords
which repeats in a file for eg

START
....
...
END


START
....
...
END

START
.......
9,416
Posted By misenkiser
as i mentioned the date given was just an example...
as i mentioned the date given was just an example
It will be any date in general; so cannot hardcode
9,416
Posted By misenkiser
Hi Mona The date which i gave was just for...
Hi Mona

The date which i gave was just for example
it may be any date in general so i cannot hardcode; all i know is the format will be the same
9,416
Posted By misenkiser
extract date portion from file
Hi,

I have a file where there is a date field (single line variable length file)

how to extract just the date portion from it

the position of date field may vary anywhere in the line
but...
12,255
Posted By misenkiser
Hi Will this work from command prompt by...
Hi

Will this work from command prompt by just giving input and o/p file names ?
12,255
Posted By misenkiser
Copy selected contents from file
I want to capture contents of a file between 2 strings into another file

for eg all lines in between the keywords "start log" and "end log" should be copied into another file
1,914
Posted By misenkiser
Copying selected content from file
I want to capture contents of a file between 2 strings into another file

for eg all lines in between the keywords "start log" and "end log" should be copied into another file
4,171
Posted By misenkiser
Reading from Lotus notes mail server
Hi,

is there any way Unix shell script can directly read a mail on a mail server
(Lotus notes) and save it as a text file in a unix directory ?

For eg mail can be at abc@xyz.com and the same...
Showing results 1 to 25 of 36

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