Search Results

Search: Posts Made By: Akshay
4,342
Posted By Akshay
We preferred awk gsub because we had to capture...
We preferred awk gsub because we had to capture count of replacements in file. sed and tr were not helping in capturing counts.
Below is actual script with some changes.

# remove...
4,342
Posted By Akshay
Awk script gsub optimization
I have created Shell script with below awk code for replacing special characters from input file.



Source file has 6 mn records. This script was able to handle 2 mn records in 1 hr. This is...
8,190
Posted By Akshay
I am getting output like this , no warning/error....
I am getting output like this , no warning/error. Output file is created , but with origional record only , no replacement.



Plz try to figure out exact error....

---------- Post updated...
8,190
Posted By Akshay
This can be very helpful to me. But its not...
This can be very helpful to me.

But its not workng in ksh script i put. I removed those 2 '.'s from above code.




Any changes required?
8,190
Posted By Akshay
If this works , how can i print values. I had...
If this works , how can i print values. I had tried this option already but i couldn't print value. I tried like

count=gsub("[^[:alnum:][unct:][:blank:]]","?",$0)
then print $count
print...
8,190
Posted By Akshay
Thanx for your quick reply. That worked. ...
Thanx for your quick reply.

That worked.

Can i catch it in a variable ? That would be easier for me.
8,190
Posted By Akshay
gsub in Awk to capture count of replaced characters
Hi ,

I am working on a script to replace special characters in ASCII file with '?'.

We need to get count of replaced characters from file. I am new to Awk and i read,

# The gsub...
3,041
Posted By Akshay
Doubts on FIFO
Hi ,
I m beginner for Unix and i want to use FIFO in my 2 Scripts . I want 1 script to read data from FIFO and other will write into FIFO.

Despite reading so many articles/posts i am still...
Showing results 1 to 8 of 8

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