Search Results

Search: Posts Made By: sreejitnair123
2,587
Posted By sreejitnair123
Thanks Yes I do understand that the issue is with...
Thanks Yes I do understand that the issue is with the underscore "_" in my path. But I am using this in my shell script and I don't want to use cd command in there.

Is there any way I can ls on...
2,587
Posted By sreejitnair123
Thanks but still the code below ls...
Thanks but still the code below

ls ${path_to_files}/lms_prap_rf* | nawk -F '[._]' '{print $NF-1, $0}' | sort -n | head -1 | read dummy fname; basename $fname

is giving wrong answer
...
2,587
Posted By sreejitnair123
Sorting issue with directory and file name
Hi All,

My folder contains the files as:

$ ls -lrt
total 50
lms_prap_rf_20100422_99.xml
lms_prap_rf_20100422_9.xml
lms_prap_rf_20100422_100.xml
lms_prap_rf_20100422_10.xml...
2,683
Posted By sreejitnair123
Hi scottn Thanks for reply it is working. ...
Hi scottn

Thanks for reply it is working.

Can you briefly explain it.

-t_ is it checking for underscore ?
what -nk3 -k4 is doing?

Regards,
Sreejit

---------- Post updated at 05:27 PM...
2,683
Posted By sreejitnair123
Sorting string with date and number
Hi,

We have files coming in the system and we want to sort it in ascending order with date and sequence.

The file pattern are inbound_crp_date_sequence.xml

example we have file as below:...
1,494
Posted By sreejitnair123
Replacing text inside xmltag
Hi All-

I have a xml file with tag

<Forename>ABCDEF</Forename>
<Surname>ABCDEFGH</Surname>

in between tag it could be anything I need to search
<Forename></Forename> and change what...
4,880
Posted By sreejitnair123
Unix XML Parsing check well formed
Hi,

I am using ksh, is there any command which can check whether the XML file is well formed or not?

Regards,
Sreejit
2,279
Posted By sreejitnair123
Thanks a lot. Regards, Sreejit
Thanks a lot.

Regards,
Sreejit
2,279
Posted By sreejitnair123
Thanks all..It was really quick... I found...
Thanks all..It was really quick...

I found this one good, echo ${ORACLE_HOME%%/$ORACLE_SID*}

Can you please explain what it does. Is it removing or cut the $ORACLE_SID from $ORACLE_HOME
...
2,279
Posted By sreejitnair123
Extract path within path
Hi,

I have a environmental variables,


ORACLE_HOME=/u01/oracle/ORCL/db/tech/10.2.0
ORACLE_SID=ORCL


Now I need to create a variable and need to extract some part from ORACLE_HOME. I...
8,320
Posted By sreejitnair123
Thanks a lot ... I understood it completely... ...
Thanks a lot ... I understood it completely...

Regards,
Sreejit
8,320
Posted By sreejitnair123
Hi Danmero, I have used nawk and it is...
Hi Danmero,

I have used nawk and it is working, is it problem if we use nawk?

I am not strong in unix. I have understood some of the line used in ur command.

I may sound greedy
But if...
8,320
Posted By sreejitnair123
Hi Danmero, Thanks for help and solution. ...
Hi Danmero,

Thanks for help and solution.
I think my awk version is different, I am getting the same error.

But thanks for ur solution.

Regards,
Sreejit

---------- Post updated at...
8,320
Posted By sreejitnair123
Hi Danmero, I am getting this error while...
Hi Danmero,

I am getting this error while running the command

awk: syntax error near line 1
awk: illegal statement near line 1
awk: syntax error near line 1
awk: bailing out near line 1
...
8,320
Posted By sreejitnair123
SED remove line feed and add to certain area
Hi All,

I have a xml file and requirement is to remove the line feed and add line feed after some element.

<?xml version="1.0" ?>
<AUDITRECORDS>
<CARF>
<HED>
...
Showing results 1 to 15 of 15

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