Search Results

Search: Posts Made By: rashmisb
7,571
Posted By rashmisb
Perfect ..thank you very much.This is exactly...
Perfect ..thank you very much.This is exactly what I need. :b: Can you please explain me this part of the code.

"arr=arr?arr" "P[i]:P[i]} "
7,571
Posted By rashmisb
Thank you , this is how I want the result to be ,...
Thank you , this is how I want the result to be , but my column names are not exactly col1, col2 etc . Actually they are different.

Like

name, city, zipcode, state, country,eff_date,...
7,571
Posted By rashmisb
Thank you guys , checking the length and print...
Thank you guys , checking the length and print works , but I also need to print the field name along with it . But somehow I am not able to print the field.
Can you please tell if we can print the...
7,571
Posted By rashmisb
Check for length which exceeds specified length in a line
Hi,

I have a issue, I need to loop through a comma delimited file and check for the length which exceeds specified length , if Yes truncate the string.
But my problem is , I do not have to check...
2,263
Posted By rashmisb
concatenate multiple file
Hi

Need some help to concatenate files

I have multiple spool files nearlly 15 of them which I need to concatenate like as shown in the below example
for ex.

file1.txt

aaaa|bbbbb|cccc|...
1,007
Posted By rashmisb
Thanks a lot Methyl and Alister :-) . ...
Thanks a lot Methyl and Alister :-) .

Alister , I am not that well versed with Sed , can you please explain me the code
1,007
Posted By rashmisb
File convert
Hi ,

I Have an output from the a log file which I need to convert to a pipe delimiter, but the problem is , I am not able to find a proper delimiter b/w the words .

My log file

1. confirm...
2,104
Posted By rashmisb
search for a string and delete it from the file
Hi , I am breaking my head from past one day ...to delete lines from a file which match to the string pattern.:wall:

I am storing the search string in a variable and search if the file exists in...
1,157
Posted By rashmisb
reading files using awk
Hi ,

I have a awk script to read a file using getline, but when its not able to recognize the path of the file. I am working on solaris unix.

nawk -F'|' '
BEGIN{
...
26,963
Posted By rashmisb
Thanks, can you please explain me the code, as I...
Thanks, can you please explain me the code, as I don;t know perl scripting.Is there a way to do it unix, would reading the file using fopen consume less memory and do the comparison and then write...
26,963
Posted By rashmisb
Hi, I am working on Sun Microsystems Inc.SunOS...
Hi,
I am working on Sun Microsystems Inc.SunOS 5.10 version.
My file is a output of a sql query which fetchs records of more than 40 million records from the oracle database
from 2 different...
26,963
Posted By rashmisb
best method to compare 2 big files in unix
Hi ,

I have a requirement to compare 2 files which can contain 40 million or more records and more than 20 fields to compare .
Currently I am using awk scripting , and since awk has a memory...
1,684
Posted By rashmisb
Merge 2 files
Hi ,

This might be the stupidest question I am asking, but I am struck with this problem. I am trying to merge 2 files, file1 has header and file2 has contents. while I merge them , it merges...
1,504
Posted By rashmisb
thanks this works egrep '\|N$|^N\||\|N\|' file....
thanks this works egrep '\|N$|^N\||\|N\|' file. Is it possible to make it read from the 2nd line, as my 1st line of the file is a header.

Thanks
1,504
Posted By rashmisb
thanks a lot, it works ...I had one more doubt,...
thanks a lot, it works ...I had one more doubt, wht if the field delimiter is not fixed i.e what if I had to process multiple files without knowing the filed delimiter .
Can I pass the field...
1,504
Posted By rashmisb
Delete the lines if it matchs a selected string
HI,

I need one help to generate the file based on few condition,
I need to print only those line which has N and delete the line which as all Y's. ANd I need to compare only the fields which are...
1,680
Posted By rashmisb
search for a string without fixed delimiter in the line
Hi

Need your help to assign the string to a variable from a line which has no fixed delimter in unix.

for example , my file contains

Name="report""
File Name one="test1"
File Name...
9,470
Posted By rashmisb
Thanks a lot , it works great
Thanks a lot , it works great
9,470
Posted By rashmisb
Convert rows to columns using AWK
Hi , I am struck while coding AWK script. Need your help to convert rows into columns. I should copy only those rows which are marked to Y in a file and ignore N rows. Please help me find a solution....
3,762
Posted By rashmisb
I have a urgent requirement with AWK and I am new...
I have a urgent requirement with AWK and I am new to AWK scripting , kindly help me with the below problem


I would be having file where I would get information about the input files and the...
3,762
Posted By rashmisb
Thank you guys ...just wanted to know if this...
Thank you guys ...just wanted to know if this works in SUN OS unix.
3,762
Posted By rashmisb
Compare fields in 2 files using AWK
Hi unix gurus,

I have a urgent requirement, I need to write a AWK script to compare each fields in 2 files using AWK.

Basically my output should be like this.

file1
row|num1|num2|num3...
Showing results 1 to 22 of 22

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