Search Results

Search: Posts Made By: charithainfadev
Forum: Red Hat 02-01-2011
5,608
Posted By charithainfadev
Hi, Now I got a new problem. If the file is small...
Hi, Now I got a new problem. If the file is small this is working fine. But If I get all the data from production, its not working.
There are just 1300 records that get loaded into this flat file...
Forum: Red Hat 01-29-2011
5,608
Posted By charithainfadev
Oh! WAIT!! Now I got it... I should not replace...
Oh! WAIT!! Now I got it... I should not replace ctrlC with control c character. Silly me!!! :) AWESOME! AWESOME!! THANKS THANKS THANKS...THANKS A TON!!

---------- Post updated at 10:13 AM...
Forum: Red Hat 01-29-2011
5,608
Posted By charithainfadev
nawk -f char.awk myFile nawk is not...
nawk -f char.awk myFile

nawk is not recognized so I replaced with gawk or awk

char.awk:
BEGIN {
FS=OFS="|"
ctrlC=sprintf("%c", 003)
}
{
sub("^[|]","")
sub(ctrlC "$","")
...
Forum: Red Hat 01-29-2011
5,608
Posted By charithainfadev
BEGIN { FS=OFS="|" ^C=sprintf("%c", 003) ...
BEGIN {
FS=OFS="|"
^C=sprintf("%c", 003)
}
{
sub("^[|]","")
sub(^C "$","")
while (n=index($0, ^C))
$0=substr($0, 1, n-1) ORS $1 OFS substr($0, n+1)
print
}


gawk -f...
Forum: Red Hat 01-29-2011
5,608
Posted By charithainfadev
It is throwing the following error with both awk...
It is throwing the following error with both awk and gawk. Is it unix code only? Sorry if the question sounds stupid! I am wondering if it is c++ code or unix code.

awk: char.awk:3: ...
Forum: Red Hat 01-28-2011
5,608
Posted By charithainfadev
Hi, Can you please explain me the code? When I...
Hi, Can you please explain me the code? When I wrote this code, and give the nawk command on command line it is saying "command not found"
The code doesn't seem to be unix or linux code! I am not...
Forum: Red Hat 01-28-2011
5,608
Posted By charithainfadev
But that is not working.. i can post some sample...
But that is not working.. i can post some sample data for you..

|111111111|
|222222222|1292251978 Prad Bu Development^C
|333333333|
|444444444|1294070403 Joe De Pete Keny is currently testing...
Forum: Red Hat 01-28-2011
5,608
Posted By charithainfadev
hi, thanks for the reply, actually, i did not...
hi, thanks for the reply, actually, i did not understand the full command. I am sorry!
But i tried to give this command on the command line.. it did not work. I would appreciate in your further...
Forum: Red Hat 01-28-2011
5,608
Posted By charithainfadev
Parsing a linux file and formatting it.
Hi, I have a linux file that has data like this..
REQUEST_ID|text^Ctext^Ctext^C
REQUEST_ID|text^Ctext^C
REQUEST_ID|
REQUEST_ID|
REQUEST_ID|text^Ctext^Ctext^Ctext^Ctext^Ctext^C....
Where ever I...
Showing results 1 to 9 of 9

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