Search Results

Search: Posts Made By: anushree.a
1,821
Posted By anushree.a
Thank you friends for the help which was much...
Thank you friends for the help which was much needed. Special thanks to Mr. rbatte1 for taking extra efforts for step by step guiding.
Thank you.
1,821
Posted By anushree.a
I didn't try anything as I know way out only by...
I didn't try anything as I know way out only by using "If" statement which unfortunately I do not want to use.
Hence seeking for guidance who know grep well.
1,821
Posted By anushree.a
Grepping only if condition matches
Dear Friends,

I have a flat file which is as follows

$cat sample
123,456,1,1,1,1
sdfas,345,1,1,1,1
dfgd,234,2,3,4,1
ggffgr,234,4,3,2,1
jkhu,354.1,1,1,1
$

I want to get output of only...
2,307
Posted By anushree.a
Dear Aia, Thank you for your support. The...
Dear Aia,

Thank you for your support.
The script is now written and have been sent to teating team.

Also, I am grateful to all the other friends who helped me here...
Thanks for the time and...
2,307
Posted By anushree.a
I tried code suggested by Aia and its working as...
I tried code suggested by Aia and its working as per expectations.
However, I would like to run this perl in loop as I have around 830 different patterns like "Permanent".

I tried following
...
2,307
Posted By anushree.a
THank you for the suggestion. I can not...
THank you for the suggestion.

I can not think of any solution for this selection criteria.
Kindly help.
2,307
Posted By anushree.a
Find and select complete paragraph
HI Friends,
I need your help once again.

I have following

$cat april_2015.txt
== :: ==
Gender: Female
Service: Tattoo
Nature: Permanent
Amt: 21000 INR
Date: 04/04/2015
Artist: Anushka...
1,480
Posted By anushree.a
Arranging Haphazard output in readable format
Dear Friends,
Need your help once again.

I have a sql to download output in pipe separated format.
Due to that output looks haphazard.

E.G.

$cat output.temp

123|456|789|0...
1,076
Posted By anushree.a
Grepping and replacing
Hey Friends,
Need your help again.

I have input.temp file as follows

$cat input.temp

Lakme|Beauty Products|Lipstick
L'Oreal|Hair Care|Conditioner
Lakme|Beauty Products|Lip gloss...
1,122
Posted By anushree.a
Deleting repeated lines by keeping only one.
Dear Buddies,
Need ur help once again.
I have a flat file with around 20 million lines (Huge file it is). However, many of the lines are of no use hence I want to remove it. To find and delete...
5,215
Posted By anushree.a
Wow Len RudiC and Pamu, Thanks for your...
Wow Len RudiC and Pamu,

Thanks for your efforts and prompt help which was badly needed.
Special thanks to Len, it worked exactly how I wanted it to work.

Thank you once again.
God bless you...
5,215
Posted By anushree.a
Dear RudiC, Sorry, it may sound foolish but...
Dear RudiC,

Sorry, it may sound foolish but may I know where to enter input file name and what will be output file name? Also, wondering where is "Bye**" pattern is placed in the script.
5,215
Posted By anushree.a
Hi Pamu, once i pressed "Enter" key it returned...
Hi Pamu, once i pressed "Enter" key it returned to $ prompt without giving any output on screen.

Hi Rudic, the solution that you have given is working fine but :-( I have more than a million...
5,215
Posted By anushree.a
Hi Pamu, The solution is not working. Output...
Hi Pamu,
The solution is not working. Output file is generated of zero MB :-(
5,215
Posted By anushree.a
Grepping text block by block by using for loop
Hei buddies,
Need ur help once again.

I have a file which has bunch of lines which starts from a fixed pattern and ends with another fixed pattern.
I want to make use of these fixed starting...
2,025
Posted By anushree.a
Grepping more than one word
Dear Experts,
Need your help.
Typically we use "grep" to search and display a pattern in a txt file.
However, here what we want is, we want to grep a line which contains 4 words any where in a...
937
Posted By anushree.a
pasting problem
Hi Friends,
Please help.
I have 2 pipe delimited files; each one has different number of rows in it. I want to use "paste" to concatenate these files.
However, while doing it, due to difference in...
944
Posted By anushree.a
SQL in LINUX. Variable or Database
Dear Friends :-),

Need your help once again.

I have following SQL in a shell script to pick values from database
select date_stamp, time_stamp from logs
where date=31012012

However, at...
1,009
Posted By anushree.a
No my code is in informix. However, in informix...
No my code is in informix.
However, in informix standard SQL commands work.
So its fine even if you give me SQL statement.
1,009
Posted By anushree.a
Returning -ve value in a pattern
Dear Friends,

I need your help once more.
I want to write a simple select as follows

select amount from books
where sr=1234

However, if value of "Amount" is negative then it should print...
1,717
Posted By anushree.a
Adding Zeros to make it 8 digit
Dear Buddies,
My query may be pretty simple but I am stuck because of it. Please give me a solution.
Query is I have a variable (say $A) which can have any number starting from 1 digit to 8 digit...
1,333
Posted By anushree.a
Format output issue
Dear Friends,
Need your help.

$cat input.txt
TITLE
Date:01-01-2011
Day: Friday
Details Particulares Qty
$
$
$
$
$
$more test.sh...
1,977
Posted By anushree.a
Hey Jayan_jay, awk worked but not exactly...
Hey Jayan_jay,

awk worked but not exactly how we want. It has straight away replaced all M/M SRNO by T_DLHNNO without matching remaining part i.e. (000M/6200-0362498 COSMETIC PRO MALE FEMALE) of...
1,977
Posted By anushree.a
Thanks Max_hammer and Jayan_jay, I have tried...
Thanks Max_hammer and Jayan_jay,
I have tried both the solutions and Max_hammer's solution worked partially (we can not use sed in our case for some reason). Jayan_jay's solution has nawk which our...
1,977
Posted By anushree.a
String replacement.
Dear Friends,
I want to replace following line with given line.

It should grep/search following string in a file (input.txt)
M/M SRNO: 000M/6200-0362498 COSMETIC PRO ...
Showing results 1 to 25 of 161

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