08-16-2016
How to check record delimiter of a file ?
My requirment is for every record of a particular file I've to check for a record delimeter (e.g. "\n") and if any row doesn't have "\n" then report it in error file .
Please suggest me to go through this.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi experts.
I got a file (500mb max) and need to pivot it (loading into ORCL) and change BLANK delimiter to PIPE |.
Sometimes there are multipel BLANKS (as a particular value may be BLANK, or simply two BLANKS instead of one BLANK).
thanks for your input!
Cheers,
Layout... (3 Replies)
Discussion started by: thomasr
3 Replies
2. Shell Programming and Scripting
Hi,
I have a problem, please help me,
I have a flat file like this:
P00000000088888888999999999 0000999903 000000000000000000
P00000000077777777000000000 0000999903 000000000000000000
P00000000044444444333333333 0000999903 00000000000000000079875
P00000000066666666111111111 0000999903 ... (5 Replies)
Discussion started by: DebianJ
5 Replies
3. Shell Programming and Scripting
Hi,
My inputfile contains field separaer is ^.
12^inms^
13^fakdks^ssk^s3
23^avsd^
13^fakdks^ssk^a4
I wanted to print only 2 delimiter occurence i.e
12^inms^
23^avsd^ (4 Replies)
Discussion started by: Jairaj
4 Replies
4. Shell Programming and Scripting
Hi,
I have a No Delimiter variable length text file with following schema -
Column Name Data length
Firstname 5
Lastname 5
age 3
phoneno1 10
phoneno2 10
phoneno3 10
sample data - ... (16 Replies)
Discussion started by: Gaurav Martha
16 Replies
5. Programming
moved (0 Replies)
Discussion started by: ust3
0 Replies
6. Shell Programming and Scripting
Hi,
Extremely new to Perl scripting, but need a quick fix without using TEXT::CSV
I need to read in a file, pass any delimiter as an argument, and convert it to bar delimited on the output. In addition, enclose fields within double quotes in case of any embedded delimiters.
Any help would... (2 Replies)
Discussion started by: JPB1977
2 Replies
7. Shell Programming and Scripting
I have test.xml
<emp><id>101</id><name>AAA</name><date>06/06/14 1811</date></emp>
<Join><id>101</id><city>london</city><date>06/06/14 2011</date></join>
<Join><id>101</id><city>new york</city><date>06/06/14 1811</date></join>
<Join><id>101</id><city>sydney</city><date>06/06/14... (2 Replies)
Discussion started by: vsraju
2 Replies
8. UNIX for Dummies Questions & Answers
Hi Guys,
I had some file which that I made tar their, now I need to know tar file record then how to find it. (5 Replies)
Discussion started by: aaditya321
5 Replies
9. UNIX for Advanced & Expert Users
Hi,
I have received a file which is 20 GB. We would like to split the file into 4 equal parts and process it to avoid memory issues.
If the record delimiter is unix new line, I could use split command either with option l or b.
The problem is that the line terminator is |##|
How to use... (5 Replies)
Discussion started by: Ravi.K
5 Replies
LEARN ABOUT DEBIAN
ns_requestauthorize
ns_requestauthorize(3aolserver) AOLserver Built-In Commands ns_requestauthorize(3aolserver)
__________________________________________________________________________________________________________________________________________________
NAME
ns_requestauthorize - commands
SYNOPSIS
ns_requestauthorize option ?arg arg ...?
_________________________________________________________________
DESCRIPTION
ns_requestauthorize method URL authuser authpassword ?ipaddr?
Ask the server to check permissions using nsperm. This function does the same permission check that the AOLserver does before serving a
URL. If the nsperm module is loaded, the algorithm is as follows.
1. If the authuser is "nsadmin", the password is correct, and the IP address of the client is allowed nsadmin access, then access is autho-
rized.
2. Find the relevant permission record. If an exact match for the method and URL combination is not found, the end of the URL is pared down
until a match is found. For example, if there is no match for `/products/cereals/raisin_bran.html,' then the server looks for a permis-
sion record for the URL `/products/cereals.' If that permission record is specified as "Exact URL match is NOT required", then that per-
mission record is used.
By default, the server comes with a row that says GET on `/' is open to the world. If no relevant permission record is found, access is
denied (forbidden).
1. If the authuser is in the "Allow Users" list, access is permitted. If the authuser is a member of a group in the "Allow Groups" list and
not in the "Deny Users" list, access is permitted.
2. If the host is in the "Hosts to allow" list, access is permitted. If the host is in the "Hosts to deny" list, access is denied.
3. If the request does not come in with authorization data, access is denied.
4. The user and password are verified. If there is no password specified in the database, any password is accepted.
5. Otherwise, access is denied.
Return Values:
The following values can be returned by ns_requestauthorize.
OK The user has permission to execute this URL and method.
DENIED The user does not have permission to execute this URL and method.
FORBIDDEN There is no possible user/password/IP Address combination that would give authorization.
ERROR There was an error.
SEE ALSO
ns_passwordcheck, ns_crypt
KEYWORDS
AOLserver 4.0 ns_requestauthorize(3aolserver)