11-01-2011
Can you attach a file with an example? With only one row?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I know this has been asked previously on this forum...But I think I have a different scenario to present.
I ahve a file tht looks like this (note:there are control Z and other chars tht are not visible on line with anme bowers)
BB7118450 6004718 BIANCALANA =HEI
BZ5842819 ... (4 Replies)
Discussion started by: alfredo123
4 Replies
2. Shell Programming and Scripting
I am trying to delete all the files with line number less than 100 in a directory. Thank you. (5 Replies)
Discussion started by: Sean2008
5 Replies
3. Shell Programming and Scripting
Hello friendz,
dfl;g435hkd.fg
..this is what I am getting. I want to print strings without junk chars.
I want to exactly like this... dflg435hkd.fg ...need some specific operators also. for example, dot or comma should allow.
plz help me out ya!
~Balan:confused: (1 Reply)
Discussion started by: balan_mca
1 Replies
4. Shell Programming and Scripting
I know this should be simple, but I've been manning sed awk grep and find and am stupidly stumped :(
I'm trying to use sed (or awk, find, etc) to find 4 characters on the second line of a file.txt 44-47 characters in. I can find lots of sed things for lines, but not characters. (4 Replies)
Discussion started by: unclecameron
4 Replies
5. Shell Programming and Scripting
Hi Guys,
I have an oracle database, I am trying to query the database and route it to file.
But the records instead of coming in a single line, are coming in three lines.
Can you please help me.. in this..
sqlplus -s $SRMUserid/$SRMPassword@$SRMServer<< EOF >log.out;
select * from... (5 Replies)
Discussion started by: mac4rfree
5 Replies
6. Shell Programming and Scripting
Hi All
I have a rather unusual problem, which i have not faced till now. I have a script which exports some paths to a text file. The script runs fine but when i check the output file i can see some junk characters ^M appended at end of lines and random places. I am not able to figure... (4 Replies)
Discussion started by: raghu_shekar
4 Replies
7. UNIX for Advanced & Expert Users
Hi Experts,
here is a background to my problem :
I am exporting data from teradata using fastexport utility, as varchar data.
This pads additional two bytes (2 places as seen in notepad) in the resultset.
I have found out other means of avoiding it but can't use varchar option in that... (5 Replies)
Discussion started by: sumoka
5 Replies
8. Shell Programming and Scripting
Hi! i've been reading you guys for some time, now there is something I couldn't find here,
I'm trying to purge some data for my thesis but my measurements have some gaps in the third columns.
The solution is simple,
-Erase those lines where the third column is empty
¿How?
example... (1 Reply)
Discussion started by: AriasFco
1 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a BASH script where I would like to identify all the lines of a text file that match specific pattern, and then erase them one by one. The ultimate goal will be to identify all the lines matching the pattern, and then for each line identified prompt the user whether or not to erase... (3 Replies)
Discussion started by: msb65
3 Replies
10. UNIX for Dummies Questions & Answers
I have a file that includes strings with special characters, eg
file1
line: 1 - special 1
line: = 4
line; -3
etc
How can I grep the lines of file1 from file2, line by line?
I used fgrep and egrep to grep a particular line and worked fine, but when I used:
cat file1|while read line;do... (2 Replies)
Discussion started by: FelipeAd
2 Replies
LEARN ABOUT LINUX
erl_lint
erl_lint(3erl) Erlang Module Definition erl_lint(3erl)
NAME
erl_lint - The Erlang Code Linter
DESCRIPTION
This module is used to check Erlang code for illegal syntax and other bugs. It also warns against coding practices which are not recom-
mended.
The errors detected include:
* redefined and undefined functions
* unbound and unsafe variables
* illegal record usage.
Warnings include:
* unused functions and imports
* unused variables
* variables imported into matches
* variables exported from if / case / receive
* variables shadowed in lambdas and list comprehensions.
Some of the warnings are optional, and can be turned on by giving the appropriate option, described below.
The functions in this module are invoked automatically by the Erlang compiler and there is no reason to invoke these functions separately
unless you have written your own Erlang compiler.
EXPORTS
module(AbsForms) -> {ok,Warnings} | {error,Errors,Warnings}
module(AbsForms, FileName) -> {ok,Warnings} | {error,Errors,Warnings}
module(AbsForms, FileName, CompileOptions) -> {ok,Warnings} | {error,Errors,Warnings}
Types AbsForms = [term()]
FileName = FileName2 = atom() | string()
Warnings = Errors = [{Filename2,[ErrorInfo]}]
ErrorInfo = see separate description below.
CompileOptions = [term()]
This function checks all the forms in a module for errors. It returns:
{ok,Warnings} :
There were no errors in the module.
{error,Errors,Warnings} :
There were errors in the module.
Since this module is of interest only to the maintainers of the compiler, and to avoid having the same description in two places to
avoid the usual maintenance nightmare, the elements of Options that control the warnings are only described in compile(3erl) .
The AbsForms of a module which comes from a file that is read through epp , the Erlang pre-processor, can come from many files. This
means that any references to errors must include the file name (see epp(3erl) , or parser erl_parse(3erl) ). The warnings and errors
returned have the following format:
[{FileName2,[ErrorInfo]}]
The errors and warnings are listed in the order in which they are encountered in the forms. This means that the errors from one file
may be split into different entries in the list of errors.
is_guard_test(Expr) -> bool()
Types Expr = term()
This function tests if Expr is a legal guard test. Expr is an Erlang term representing the abstract form for the expression.
erl_parse:parse_exprs(Tokens) can be used to generate a list of Expr .
format_error(ErrorDescriptor) -> Chars
Types ErrorDescriptor = errordesc()
Chars = [char() | Chars]
Takes an ErrorDescriptor and returns a string which describes the error or warning. This function is usually called implicitly when
processing an ErrorInfo structure (see below).
ERROR INFORMATION
The ErrorInfo mentioned above is the standard ErrorInfo structure which is returned from all IO modules. It has the following format:
{ErrorLine, Module, ErrorDescriptor}
A string which describes the error is obtained with the following call:
Module:format_error(ErrorDescriptor)
SEE ALSO
erl_parse(3erl) , epp(3erl)
Ericsson AB stdlib 1.17.3 erl_lint(3erl)