Unix/Linux Go Back    

Showing results 1 to 25 of 81
Search took 0.01 seconds.
Search: Posts Made By: dashing201
Forum: UNIX for Beginners Questions & Answers Linux 10-10-2017
Replies: 5
Views: 178
Posted By dashing201
Hi Scott thanks for prompt reply. However I...

Hi Scott
thanks for prompt reply.
However I am specifically looking for regex as the same code may be executed in unix shell or other languages.

Thanks
Nitin
Forum: UNIX for Beginners Questions & Answers Linux 10-10-2017
Replies: 5
Views: 178
Posted By dashing201
Regex to identify pattern

Hi
In a file I have string in multiple lines. Like below:

<?=test.getObjectName("L", "testTBL","D") ?>
<?=test.getObjectName("L", "testTBL","testDB", "D") ?>

I want to use regex to search...
Forum: UNIX for Beginners Questions & Answers Linux 07-11-2017
Replies: 2
Views: 265
Posted By dashing201
Hi Jim Thanks for quick reply. I am...

Hi Jim

Thanks for quick reply.
I am exporting data from RDBMS table into flat file with FIELDS TERMINATED BY '#' LINES TERMINATED BY '\n'.
However in the file there are few strings which have \n...
Forum: UNIX for Beginners Questions & Answers Linux 07-11-2017
Replies: 2
Views: 265
Posted By dashing201
How to handle new line if it is EOL or present as part of string?

Hi All

I am facing some issues while processing a file.
The file has \n as End Of Line. However for some records '\n' is also present as part of string. Hence I am not able to identify proper...
Forum: UNIX for Beginners Questions & Answers Linux 06-26-2017
Replies: 4
Views: 340
Posted By dashing201
Hi Andrew Thanks for quick reply. However...

Hi Andrew

Thanks for quick reply.
However I am not getting proper result

echo "NET_SALES^M ^M---- new fields for -- ^M ,YABA_FLAG^M ,DOO_FLAG^M"|sed 's/--[^\r]*\r//g'

Output:
...
Forum: UNIX for Beginners Questions & Answers Linux 06-26-2017
Replies: 4
Views: 340
Posted By dashing201
Search and Delete pattern with Control M

Hi
I have data file like below:

NET_SALES^M ^M---- new fields for -- ^M ,YABA_FLAG^M ,DOO_FLAG^M

My requirement is to search for atleast 2 -- and remove all the words till first ^M is...
Forum: Shell Programming and Scripting Linux 09-22-2014
Replies: 3
Views: 1,952
Posted By dashing201
Hi Ravinder/Sea Thanks for the quick reply. ...

Hi Ravinder/Sea

Thanks for the quick reply.
However if I have to implement a check to confirm if all the process have been completed then how can I do it ?
It is required to make sure that all...
Forum: Shell Programming and Scripting Linux 09-22-2014
Replies: 3
Views: 1,952
Posted By dashing201
Run script in parallel in while loop

Hi
I am running a loop which actually runs same script for different argument value passed to it.

while read repID
do
echo "Starting for $repID";
date;
perl process_report.pl $repID ...
Forum: Shell Programming and Scripting Linux 05-05-2014
Replies: 7
Views: 737
Posted By dashing201
tried this. still not working. awk -v...

tried this. still not working.
awk -v var1=$key1, -v var2=$key2 '$0 ~ /var1/ {if($0 ~ /COMPRESS/) {sub("COMPRESS.*",var2)} else {sub("$",var2) }}1' FILENAME.txt
Forum: Shell Programming and Scripting Linux 05-05-2014
Replies: 7
Views: 737
Posted By dashing201
Hi When I am running the below code I m not...

Hi
When I am running the below code I m not getting the desired output.

awk '$0 ~ /$key1/ {if($0 ~ /COMPRESS/) {sub("COMPRESS.*",$key2)} else {sub("$",$key2) }}1' FILENAME.txt

However if I am...
Forum: Shell Programming and Scripting Linux 04-28-2014
Replies: 7
Views: 737
Posted By dashing201
Search for a Keyword in file and replace another keyword or add at the end of line

Hi

I want to implement something like this:

if( keyword1 exists)
then
check if(keyword2 exists in the same line)
then replace keyword 2 with New_Keyword
else
Add...
Forum: Shell Programming and Scripting Linux 10-10-2013
Replies: 11
Views: 952
Posted By dashing201
Amazing superb . Worked beautifully :) Thanks...

Amazing superb .
Worked beautifully :)
Thanks Akshay.

@Jotne: Thanks for the prompt reply.
Forum: Shell Programming and Scripting Linux 10-10-2013
Replies: 11
Views: 952
Posted By dashing201
Added code tag !!!

Added code tag !!!
Forum: Shell Programming and Scripting Linux 10-10-2013
Replies: 11
Views: 952
Posted By dashing201
Hi Guys, In the same case, a little...

Hi Guys,

In the same case, a little different scenario. If the requirement is like :

Input File:

HELLO 100-105 107 108-112
HI 201 204-209 210
Forum: Shell Programming and Scripting Linux 10-07-2013
Replies: 11
Views: 952
Posted By dashing201
Thank You Akshay & Pravin. Now it is working...

Thank You Akshay & Pravin.
Now it is working beautifully.
Forum: Shell Programming and Scripting Linux 10-07-2013
Replies: 11
Views: 952
Posted By dashing201
Fill data if number range is given

Hi
I want to get all numbers if number range is given as input.
Eg:

INPUT FILE
100-105
107
108-112

OUTPUT REQUIRED:
Forum: UNIX for Dummies Questions & Answers Linux 09-10-2013
Replies: 6
Views: 1,293
Posted By dashing201
Thanks a lot. It worked beautifully :D

Thanks a lot.
It worked beautifully :D
Forum: UNIX for Dummies Questions & Answers Linux 09-10-2013
Replies: 6
Views: 1,293
Posted By dashing201
[Solved] Change Date from one format to other

Hi

I wish to change date from one format to another in unix.

eg: INPUT DATE: 2013159 (YEAR & NUMBER OF DAY)
OUTPUT DATE required: 20130608 (YYYYMMDD)

how to do it ?

Thanks in advance.
Forum: Shell Programming and Scripting Linux 07-18-2013
Replies: 3
Views: 662
Posted By dashing201
Grep Keywords one by one

Hi

I am trying to determine number of lines having a specific keyword.
So for that I am using below query:

grep -i 'keyword1' filename|wc -l

This give me number of lines. Perfect for me....
Forum: Shell Programming and Scripting Linux 07-18-2013
Replies: 7
Views: 1,244
Posted By dashing201
Thanks to all. It worked fine. All the...

Thanks to all.
It worked fine.
All the suggestions worked perfectly fine. :)
Forum: Shell Programming and Scripting Linux 07-18-2013
Replies: 7
Views: 1,244
Posted By dashing201
Hi Rajamadhavan Thanks for prompt reply. ...

Hi Rajamadhavan

Thanks for prompt reply.
How to assign the output to a variable in PERL ? [Assuming I will get only one line]
Forum: Shell Programming and Scripting Linux 07-18-2013
Replies: 7
Views: 1,244
Posted By dashing201
Thanks... However I have to implement this in...

Thanks...
However I have to implement this in PERL script.
So when I am using it like

$var1 = `awk -F"HELLO_" '{print $2}' filename | awk -F"_BYE" '{print $1}'`

I am getting error:

Use of...
Forum: Shell Programming and Scripting Linux 07-18-2013
Replies: 7
Views: 1,244
Posted By dashing201
Extract word between two KEYWORDS

Hi
I want to extract all the words between two keywords HELLO & BYE.

eg:
Input
1_HELLO_HOW_ARE_YOU_BYE_TEST
1_HELLO_WHERE_ARE_BYE_TEST
1_HELLO_HOW_BYE_TEST

Output Required:
Forum: Shell Programming and Scripting Linux 11-28-2011
Replies: 6
Views: 17,630
Posted By dashing201
Hi Does that command execute ABC_1.ksh...

Hi

Does that command execute ABC_1.ksh first & only if it is successfully executed it will execute ABC_2.ksh & then ABC_3.ksh or all three scripts in parallel ?

Thanks in advance
Forum: Shell Programming and Scripting Linux 11-28-2011
Replies: 6
Views: 17,630
Posted By dashing201
Execute scripts in Parallel

Hi
I want to execute few scripts in Parallel. There is a Master Script (MS.ksh) which will call internally all the scripts we need to run in Parallel. Say there are three set of scripts :
...
Showing results 1 to 25 of 81

 


All times are GMT -4. The time now is 07:16 PM.