11-23-2011
And a forum search with the keywords exactly your title reveals lots of other possibilities...
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
UNIX gurus:
Following is what I am trying to do:
I need to create a control file for another file that I am creating. The information needed in the control file is the date in YYYYMMDD format and then the number of records in the other file right justified and lpadded with spaces of 20.
So... (5 Replies)
Discussion started by: alfredo123
5 Replies
2. UNIX for Dummies Questions & Answers
Hi All,
I am looking for a solution to capture any ASCII control character in a file
( where the ASCII control character is in decimal value from 0 to 31 and 127
( Hex value from 00 to 1F and 7F ) ) by returning any affected lines.
The intended good file should contain "ASCII printable... (5 Replies)
Discussion started by: cursive
5 Replies
3. Shell Programming and Scripting
Can anyone seem to know how to find out whether a UNIX text file has 'hidden' control characters?
Can I view them using 'vi' by some command line options?
If there are control characters in a text file which are invisible/hidden.. then how do I get rid of them?
Your intelletual answers are... (6 Replies)
Discussion started by: kewl_guy
6 Replies
4. Shell Programming and Scripting
Hi,
I'm using MKS tool kit to execute KSH on windows and samba to move files to unix from windows.
My script is appending header record for the data file.
I'm using
echo "$header" > $SambaFilename
cat $windowsfile >> $SambaFilename
But after execution of script ,The file in Unix... (2 Replies)
Discussion started by: ammu
2 Replies
5. UNIX for Dummies Questions & Answers
can any one say about command to find "^M" (Control M)characters in a unix text file.
^M comes when a file ftped from windows to unix without using bin mode.
I need the command to find lik this,
ex.txt:
------------------------------
...,name,time^M
go^M
...file,end^M... (5 Replies)
Discussion started by: prsam
5 Replies
6. Shell Programming and Scripting
Hi,
I have a .xml file in unix. We are passing this file through a xml parser.
But we are getting some control characters from input file and XML parser is failing for the control character in file.Now I am getting following error,
Error at byte 243206625 of file filename_$.xml:
Error... (1 Reply)
Discussion started by: fantushmayu
1 Replies
7. Programming
I am getting error when loading data file using ctl file. I get this error only when there is special character.
Below is some data.
DataFile=>
company_id|ciu_id|english_name|iso_country_code|active|partner_name
1-2JT-122||Expert Järvenpää|FI|A|Expert Järvenpää
Control File=>
LOAD DATA... (1 Reply)
Discussion started by: rshivarkar
1 Replies
8. Shell Programming and Scripting
In a 10-50GB file , at end of file there is Control-z character
tried the below options,
1. perl -p -i -e 's/^Z//g' new.txt
2. perl -0777lwi -032e0 new.txt
and Sed command, dos2unix etc
it takes more time to remove the control-z. need a command or perl program to GO TO LAST LINE OF FILE ... (7 Replies)
Discussion started by: prsam
7 Replies
9. Shell Programming and Scripting
I have to write a program to read data from files and then format into another file. However, I face a strange problem related to control character that I can't understand and solve.
The source file is compose of many lines with such format:
T_NAME|P_NAME|P_CODE|DOCUMENT_PATH|REG_DATE
... (3 Replies)
Discussion started by: hk6279
3 Replies
10. UNIX for Beginners Questions & Answers
Delete
---- Original post, restored by mod after being deleted by abhilashnair ----
I have a requirement where, I need to create a control file which will have 3 columns in the header row as below:
Filename
Count
Checksum
This above control file has to contain metadata as above... (2 Replies)
Discussion started by: abhilashnair
2 Replies
REFER(1) General Commands Manual REFER(1)
NAME
refer, lookbib - find and insert literature references in documents
SYNOPSIS
refer [ option ] ...
lookbib [ file ] ...
DESCRIPTION
Lookbib accepts keywords from the standard input and searches a bibliographic data base for references that contain those keywords anywhere
in title, author, journal name, etc. Matching references are printed on the standard output. Blank lines are taken as delimiters between
queries.
Refer is a preprocessor for nroff or troff(1) that finds and formats references. The input files (standard input default) are copied to
the standard output, except for lines between .[ and .] command lines, which are assumed to contain keywords as for lookbib, and are
replaced by information from the bibliographic data base. The user may avoid the search, override fields from it, or add new fields. The
reference data, from whatever source, are assigned to a set of troff strings. Macro packages such as ms(7) print the finished reference
text from these strings. A flag is placed in the text at the point of reference; by default the references are indicated by numbers.
The following options are available:
-ar Reverse the first r author names (Jones, J. A. instead of J. A. Jones). If r is omitted all author names are reversed.
-b Bare mode: do not put any flags in text (neither numbers nor labels).
-cstring
Capitalize (with CAPS SMALL CAPS) the fields whose key-letters are in string.
-e Instead of leaving the references where encountered, accumulate them until a sequence of the form
.[
$LIST$
.]
is encountered, and then write out all references collected so far. Collapse references to the same source.
-kx Instead of numbering references, use labels as specified in a reference data line beginning %x; by default x is L.
-lm,n Instead of numbering references, use labels made from the senior author's last name and the year of publication. Only the first m
letters of the last name and the last n digits of the date are used. If either m or ,n is omitted the entire name or date respec-
tively is used.
-p Take the next argument as a file of references to be searched. The default file is searched last.
-n Do not search the default file.
-skeys
Sort references by fields whose key-letters are in the keys string; permute reference numbers in text accordingly. Implies -e. The
key-letters in keys may be followed by a number to indicate how many such fields are used, with + taken as a very large number. The
default is AD which sorts on the senior author and then date; to sort, for example, on all authors and then title use -sA+T.
To use your own references, put them in the format described in pubindex(1) They can be searched more rapidly by running pubindex(1) on
them before using refer; failure to index results in a linear search.
When refer is used with eqn, neqn or tbl, refer should be first, to minimize the volume of data passed through pipes.
FILES
/usr/dict/papers directory of default publication lists and indexes
/usr/lib/refer directory of programs
SEE ALSO
REFER(1)