Search Results

Search: Posts Made By: charithainfadev
Forum: Red Hat 01-29-2011
5,614
Posted By vgersh99
As I said - do NOT make any modifications to the...
As I said - do NOT make any modifications to the script itself.
Simply call it with 'awk' or 'gawk'.
Forum: Red Hat 01-29-2011
5,614
Posted By vgersh99
This is not the code I posted. Repaste what's...
This is not the code I posted.
Repaste what's been posted originally without any modifications.
Forum: Red Hat 01-29-2011
5,614
Posted By vgersh99
Please repost (using the code tags) the content...
Please repost (using the code tags) the content of your script exactly as-is AND the way you call/execute it.
Make sure you don't have ^M-s in your script.

The script works fine under Solaris and...
Forum: Red Hat 01-29-2011
5,614
Posted By vgersh99
Try using awk or gawk (instead of nawk).
Try using awk or gawk (instead of nawk).
Forum: Red Hat 01-28-2011
5,614
Posted By vgersh99
Assuming '^C' is actually a SINGLE character...
Assuming '^C' is actually a SINGLE character (CTRL-C) - not 2 characters...

nawk -f char.awk myFile

char.awk:

BEGIN {
FS=OFS="|"
ctrlC=sprintf("%c", 003)
}
{
sub("^[|]","")
...
Showing results 1 to 5 of 5

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