Sponsored Content
Top Forums Shell Programming and Scripting Finding distinct characters from flat file Post 302791681 by hanson44 on Tuesday 9th of April 2013 12:39:08 AM
Old 04-09-2013
Thank you for the thoughtful suggestions.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Help Replacing Characters in Flat File

I was wondering if somebody could help me with something on UNIX. I have a file that looks like this - "nelson,bill","bill","123 Main St","Mpls","MN",55444,8877,william I want to replace all comma with pipes (|), except if the comma is within double quotes. (The first field is an example of... (8 Replies)
Discussion started by: nelson553011
8 Replies

2. UNIX for Advanced & Expert Users

foreign characters in flat file

Hey, Is there anyway I anks, Pocha (12 Replies)
Discussion started by: pochaman
12 Replies

3. Shell Programming and Scripting

Merge lines in Flat file based on first 5 characters

Hi I have the fixed width flat file having the following data 12345aaaaaaaaaabbbbbbbbbb 12365sssssssssscccccccccc 12365sssss 12367ddddddddddvvvvvvvvvv 12367 vvvvv Here the first column is length 5 second is length 10 third is length 10 if the second or third column exceeds... (3 Replies)
Discussion started by: Brado
3 Replies

4. AIX

How to cut a flat file according to a certain number of characters?

hello everybody i am looking for a shell to cut a flat file (with a long unique line) according to a certain number of characters and redirect every result to an output file. here is an example MyFile : 12 3 456 12 3 456 12 3 456 ..... and i took every 9-characters including BLANKS... (6 Replies)
Discussion started by: fastlane3000
6 Replies

5. Shell Programming and Scripting

Select distinct values from a flat file

Hi , I have a similar problem. Please can anyone help me with a shell script or a perl. I have a flat file like this fruit country apple germany apple india banana pakistan banana saudi mango india I want to get a output like fruit country apple ... (7 Replies)
Discussion started by: smalya
7 Replies

6. Shell Programming and Scripting

Finding File Names Ending In 3 Random Numerical Characters

Hi, I have a series of files (upwards of 500) the filename format is as follows CC10-1234P1999.WGS84.p190 each of this files is in a directory named for the file but excluding the extension. Now the last three numeric characters, in this case 999, can be anything from 001 to 999, I need to... (3 Replies)
Discussion started by: roche.j.mike
3 Replies

7. UNIX for Dummies Questions & Answers

How to remove numeric characters in the flat file

HI, can any one help me please .. i have flat file like qwer123rt ass3242ccf jjk654 kjh838ppp nhdg453ok hdkk34 i want remove numeric characters in the flat file i want output like this qwerrt assccf jjk kjhppp nhdgok hdkk help me... (4 Replies)
Discussion started by: rafimd1985
4 Replies

8. Shell Programming and Scripting

Finding Strings between 2 characters in a file

Hi All, Assuming i have got a file test.dat which has contains as follows: Unix = abc def fgt jug 111 2222 3333 Linux = gggg pppp qqq C# = ccc ffff llll I would like to traverse through the file, get the 1st occurance of "=" and then need to get the sting... (22 Replies)
Discussion started by: rtagarra
22 Replies

9. Shell Programming and Scripting

Finding first 6 characters

Hi , I'm using KSH88 I tried the following example to get the last 6 characters from a string echo 'abcdefghids' | sed 's/.*\(.\{6\}\)$/\1/' What chages i need to do to get the first 6 characters from the string my desired output should be abcdef Thank you (6 Replies)
Discussion started by: smile689
6 Replies

10. Shell Programming and Scripting

Finding total distinct count from multiple csv files through UNIX script

Hi All , I have multiple pipe delimited csv files are present in a directory.I need to find out distinct count on a column on those files and need the total distinct count on all files. We can't merge all the files here as file size are huge in millions.I have tried in below way for each... (9 Replies)
Discussion started by: STCET22
9 Replies
ns_adp_ctl(3aolserver)					    AOLserver Built-In Commands 				    ns_adp_ctl(3aolserver)

__________________________________________________________________________________________________________________________________________________

NAME
ns_adp_ctl - ADP control command SYNOPSIS
ns_adp_ctl bufsize ?size? ns_adp_ctl chan channel ns_adp_ctl autoabort ?bool? ns_adp_ctl detailerror ?bool? ns_adp_ctl displayerror ?bool? ns_adp_ctl expire ?bool? ns_adp_ctl gzip ?bool? ns_adp_ctl nocache ?bool? ns_adp_ctl safe ?bool? ns_adp_ctl singlescript ?bool? ns_adp_ctl stricterror ?bool? ns_adp_ctl trace ?bool? ns_adp_ctl trimspace ?bool? _________________________________________________________________ DESCRIPTION
This command enables control of the current ADP execution environment. Aside from the bufsize and chan subcommands, they all return a boolean value for a given ADP option. If the bool argument is given, the option is set to the given value and the previous value is returned. ns_adp_ctl bufsize ?size? This command returns the currently ADP output buffer size, setting it to a new value if the optionial size argument is specified. ns_adp_ctl chan channel This command is used to specify an open file channel to receive output when the buffer is flushed. If channel is the null string, the output channel is cleared. This capability can be useful for specialized uses of ADP outside the context of an HTTP connection, e.g., for debugging or testing. ns_adp_ctl autoabort ?bool? Query or set the autoabort option. When enabled, failure to flush a buffer (normally the result of a closed HTTP connection) gener- ates an ADP exception, unwinding the ADP call stack. ns_adp_ctl detailerror ?bool? Query or set the detailerror option. When enabled, errors in ADP pages are formatted with information about the context of the HTTP request. This can be very helpful in debugging ADP errors but potentially a security risk if the HTTP context (e.g., cookie head- ers) contains personal or sensitive data. Errors are logged to the server log and, if displayerror is enabled, appened to the out- put buffer. ns_adp_ctl displayerror ?bool? Query or set the displayerror option. When enabled, errors in ADP pages are formatted and appended to the output stream, normally visiable to a user's browser. This option should generally be enabled in development and disabled in production. ns_adp_ctl expire ?bool? Query or set the expire option. When enabled, the ADP request processing code adds an "Expires: now" header in the response buffer to disable any caching. In practice, more thoughtful cache control mechanisms should be used based on the HTTP/1.1 spec. ns_adp_ctl gzip ?bool? Query or set the gzip option. When enabled, the output buffer is compressed before being returned in the response. As ADP's are generally used to generate text data such as HTML or XML, compression is normally quite successful at reducing the response size. ns_adp_ctl nocache ?bool? Query or set the nocache option. When enabled, all requests to cache executed ADP blocks via the ns_adp_include -cache directive are ignored, resulting in normal execution of all code. ns_adp_ctl safe ?bool? Query or set the safe option. When enabled, all code is executed in "safe" mode, disabling and ignoring any code within <% regis- tered tags. ns_adp_ctl singlescript ?bool? Query or set the singlescript option. When enabled, ADP pages are converted from independent text-script blocks into a single script, which text blocks replaced with a call to ns_adp_append with the given text. Functionally the output is the same however an error anywhere on the page will result in the entire ADP page returning instead of skipping to the next block which is the normal behavior. In practice, singlescript is useful in development while in production leaving it disabled provides a more defensive exe- cution environment where minor errors in one ADP do not inhibit execution of the overall page. ns_adp_ctl stricterror ?bool? Query or set the stricterror option. When enabled, the result is similar to that of singlescript in that an error in a particular block will return the entire page instead of continuing to the next text or script block. ns_adp_ctl trace ?bool? Query or set the trace option which currently does nothing. ns_adp_ctl trimspace ?bool? Query or set the trimspace option. When enabled, any white space at the start of the output buffer is eliminated. White space can show up in the output as a result of ADP pages which do nothing but include other ADP's in a way to reuse code with the unfortunate side effect of the training newline at the end of a "<% ns_adp_include myfile.adp %>" ending up in the output stream. SEE ALSO
ns_adp(n), ns_adp_flush(n), ns_adp_close(n), ns_adp_mimetype(n) KEYWORDS
ADP, dynamic pages, buffer AOLserver 4.5 ns_adp_ctl(3aolserver)
All times are GMT -4. The time now is 08:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy