Search Results

Search: Posts Made By: anandapani
1,188
Posted By anandapani
Search text beween tags and write to file using awk
Hi Friends,
I have a very big text file, that has code for multiple functions. I have scan through the file and write each function in seperate file. All functions starts with
BEGIN DSFNC
...
3,186
Posted By anandapani
Thanks Chubler, it made my task a lot easier, ...
Thanks Chubler, it made my task a lot easier,

Still have another tricky question.
I have two files for delimter validation, each with differeent delimiter count..

I am tring to call the awk...
3,186
Posted By anandapani
File validation
Hi there,

As a part of file validation, I needed to check for delimiter count in the file.
My aim is to find, how many records have failed to have predefined numbers of delimiters in the...
3,635
Posted By anandapani
cut with delimiter respect text
Hi,
Can someone help me to get the shortest command

Input file
=========
I|know|"english|french"
It|can|have|four|delimiters


Desired output
===========
"english|french"
have


If I...
3,907
Posted By anandapani
how to use ls command
Hi,

I have below files
ABC20100902.DAT.1.2
ABC20100902.DAT.11
ABC20100902.DAT.11.2
ABC20100902.DAT.365.2
ABC20100902.DAT.365.2.3

How can I select files with xxx.x.x format. So my ls...
2,614
Posted By anandapani
How to extract and replace with parameter value?
Hi,

I have a function getparam() which takes parameter name as input and parameter value as output.

I have a strting like this,

abcd#paramname1#efgh#paramname2#ijklmnopq

Above one is my...
7,404
Posted By anandapani
--
Hi,
I mean, If the date is present in the file name.
7,404
Posted By anandapani
how to search and list file with wildcard character
hi,

I want to search all files in the current working direcotry and to print in comma (,) seperated output. But I have two patterns to search for.

Files will be in ABC20100508.DAT format.
...
1,514
Posted By anandapani
Elaborate answer pl
I tried to google, but could not found out.

Can you elaborate more on command

ParamAddress=${ParamValue#\%}
1,514
Posted By anandapani
What does this command do
Hi,

In my code, I have below statement.
Can any body let me know what this command does


# now check to see if we are processing a password (starts with '%')
...
2,229
Posted By anandapani
Thanks Scrutinizer,dennis, Your solutions...
Thanks Scrutinizer,dennis,

Your solutions are perfect
2,229
Posted By anandapani
Perform Hash sum
Hi Friends,

I have a pipe delimited file with 20 million records. I want to perform the sum of the 13 field, for that I am using the code below, but the result is in exponential form. I want the...
2,715
Posted By anandapani
my workbook code
Hi,
My sample file will be like

H|ABC|DEF|20091112
D|abc|adsf|asdf|asdf
D|abc|adsf|asdf|asdf
D|abc|adsf|asdf|asdf
D|abc|adsf|asdf|asdf
T||abc|adsf|asdf|asdf

I am novice to shell...
2,715
Posted By anandapani
Hi Steady and Jim, I want to search Today's...
Hi Steady and Jim,

I want to search Today's date only in the file header .. I dont want to search through the file content.

The search will be performed on the all files in the directory and to...
2,715
Posted By anandapani
List the files with string
I want to list all the files which are having today's date in its header...

Please let me know if this can be achveived by a single command
5,384
Posted By anandapani
Finally Problem cleared
:b:Hi frdndz,

Thank you all for your posts and suggestions,

Finally, with you help, i got the answer for my question.

# perl -e 'while (<> ){ print if(/^([^\|]*\|){1,149}[^|]*$/ ||...
5,384
Posted By anandapani
awk not accepting more than 99 fields
Awk fails to run if the NF > 99. gawk can be used in place, but my shell is not having that command. So I thought to do it with perl logic.
But in the given code, it retrieves all the rows with...
5,384
Posted By anandapani
am I clear ...
Skmdu,

Previously I could have requested like this.

I want to have all the records which are not having 150 delimters. I want to see the records with < or > 150 delimiters.

If possible i...
5,384
Posted By anandapani
same login using AWK..?
Thanks for the perl code.

I have a small doubt in the code. It is not retrieving the lines which contains less than the specified number of delimiters. If a line contains more than the number, it...
5,384
Posted By anandapani
Worked excellent but....
Skumdu,

Your guess is absolutely correct,

Given code catered my requrement.
However, I have attached a small sample file, but actual file is a pipe delimited file with approx 150 fileds.
My...
5,384
Posted By anandapani
Not returning any rows
Hi Skmdu,

Thanks for your code. but Iam afraid, the code is not returning any rows.

Cheers,
5,384
Posted By anandapani
Actual sample file
Hi geek,

I have below sample file and need the output with records which doesn't have a single delimiter "|".

In below file I need to get a single line as output
ERRORline is...
5,384
Posted By anandapani
gawk alternative for huge file
Thanks Scottn and Danmero

Your answers wonderfully wonderfully on sample files. But I have very huge files (>7GB) with more than 150 fields. For such cases, I learnt from this forum that, I can go...
5,384
Posted By anandapani
Direct the invalid lines to a separate files
Hi,

I have a pipe delimited file with 1 million records. I need to validate each line by counting the number of delimiters, if any line fails to have the specified number of delimiters, taat line...
14,630
Posted By anandapani
hi thnks for reply and would like to know...
hi
thnks for reply
and would like to know the mechanism it uses to compress the files
Showing results 1 to 25 of 26

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