Sponsored Content
Top Forums Shell Programming and Scripting m4 adds extra space at top of file. Post 302454313 by Bubnoff on Friday 17th of September 2010 02:53:21 PM
Old 09-17-2010
Thanks, I think I'm getting close -- down to one blank line.

I found references to this idiosyncrasy online.

Bub
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Swap space used greater than allocated using top

Hi there, When I run top on my machine it says I have 497M swap space in use, and 380M swap space free, but I have only allocated 512M swap space to the machine!!!! Does anyone know how swap used is calculated in the top command? Thanks... (1 Reply)
Discussion started by: chorgan
1 Replies

2. AIX

How to find the top 6 users (which consume most space)?

Hi everybody, I want to know if there is any posibility to find out - on an AIX system - which are the the users who consume most space or at least a posibility to obtain a list with all the users and how much space are they consuming ? Trying to use du command was useless. Any idea?... (5 Replies)
Discussion started by: RebelDac
5 Replies

3. Shell Programming and Scripting

Script to check top 5 biggest disk space users

Hi all, I am needing a bash shell script to generate a list of the top 5 users using the most disk space. I am thinking that the du command would be used somehow but I am at a loss. Can anyone help? Thanks! (3 Replies)
Discussion started by: sytemx
3 Replies

4. Shell Programming and Scripting

extra space issue with awk

for diskname in $(lspv |awk '{print $1}') do lquerypv -h /dev/|awk '/'$diskname'/ { print ; exit }' done No output is returning from the loop. I think awk put an extra space to the command - lquerypv -h /dev/ so that the command is executed as i.e. lquerypv -h /dev/ hdisk230 with a space... (7 Replies)
Discussion started by: Daniel Gate
7 Replies

5. Solaris

Which gives the correct swap space top/vmstat ?

last pid: 29502; load avg: 21.8, 20.7, 20.4; up 8+08:49:09 763 processes: 589 sleeping, 9 running, 160 zombie, 5 on cpu CPU states: 0.0% idle, 28.2% user, 71.8% kernel, 0.0% iowait, 0.0% swap Memory: 32G phys mem, 2042M free mem, 8198M total swap, 8020M free swap kthr ... (2 Replies)
Discussion started by: chidori
2 Replies

6. Shell Programming and Scripting

my shell now adds extra space at end of each line!

Hi, Since today, with csh or tcsh, if I do 'ls files* > list', every lines end with an extra space! What happenned? What can I do to go back when there was no extra space? If I change to bash, there's no extra space. Thanks, Patrick ---------- Post updated at 03:19 PM... (1 Reply)
Discussion started by: trogne
1 Replies

7. Shell Programming and Scripting

[Solved] Howto remove extra space in the file

Hi Gurus, I have a file which contains some special char or space. when using cat -evt I can see the file as following: 0,"0000","abc/def aaa ... (6 Replies)
Discussion started by: ken6503
6 Replies

8. UNIX for Dummies Questions & Answers

#Spool/Query executing with extra space.

Hello, I have a requirement where i have to spool some data to a file. i have achived the desired target but m facing one issue. i have attached the script and the output. i checked the data length in the table but it is only 45 for column 1. can you tell me how to remove these extra... (4 Replies)
Discussion started by: Mohammed_Tabish
4 Replies

9. Shell Programming and Scripting

Space usage by top 5 users in a filesystem

I want to see top 5 users,who have occupied most amount of disk space in a filesystem. But not sure how to do it. I can get the usage for a particular user find . -user user -type f exec df -h {} \;|awk '{ s = s+$1 } END { print "Total used: ",s }' But how to get without specifying any user... (6 Replies)
Discussion started by: rka
6 Replies

10. Shell Programming and Scripting

Extra Space in output - remove

Hi All I am trying to perform the below operation -count=`cat abc.txt | wc -l` echo$count 5 Head=Start"$DATE"00000"$count"File echo $HEAD START15020300000 5File There is a space coming before 5 which is not needed . How to ignore that . (4 Replies)
Discussion started by: honey26
4 Replies
refer(1)						      General Commands Manual							  refer(1)

Name
       refer - find and format bibliographic references

Syntax
       refer [-a] [-b] [-c] [-e] [-fn] [-kx] [-lm,n] [-n] [-p bib] [-skeys] [-Bl.m] [-P] [-S] [file...]

Description
       The  command  is  a preprocessor for that finds and formats references for footnotes or endnotes.  It is also the base for a series of pro-
       grams designed to index, search, sort, and print stand-alone bibliographies, or other data entered in the appropriate form.

       Given an incomplete citation with sufficiently precise keywords, will search a bibliographic database for references containing these  key-
       words  anywhere	in  the title, author, journal, and so forth.  The input file (or standard input) is copied to standard output, except for
       lines between .[ and .] delimiters, which are assumed to contain keywords, and are replaced by information from the bibliographic database.
       The user may also search different databases, override particular fields, or add new fields.  The reference data, from whatever source, are
       assigned to a set of strings.  Macro packages such as print the finished reference text from these  strings.   By  default  references  are
       flagged by footnote numbers.

Options
       The following options are available:

       -ar	   Reverses  order  of first author names. For example, Jones, J. A. instead of J. A. Jones.  If n is omitted all author names are
		   reversed.

       -Bl.m	   Bibliography mode.  Take a file composed of records separated by blank lines, and turn them	into  *roff  input.   Label  l	is
		   turned into the macro .m with l defaulting to %X and .m defaulting to .AP (annotation paragraph).

       -b	   Creates bare entries:  no flags, numbers, or labels.

       -ckeys	   Capitalizes fields whose key letters are in string.

       -e	   Accumulates	all  references  in one list.  Default is to create references where encountered in text.  Accumulate them until a
		   sequence of the form
		     .[
		     $LIST$
		     .]
		   is encountered, and then write out all references collected so far.

       -fn	   Set the footnote number to n instead of the default of 1 (one).  With labels rather than numbers, this flag is a no-op.

       -kx	   Uses specified label in place of numbering for each 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 respectively is used.

       -P	   Places punctuation marks .,:;?! after the reference signal, rather than before.  (Periods and  commas  used	to  be	done  with
		   strings.)

       -n	   Do  not search the default file /usr/dict/papers/Ind.  If there is a REFER environment variable, the specified file is searched
		   instead of the default file; in this case the -n flag has no effect.

       -pbib	   Specifies file to be searched before

       -S	   Produce references in the Natural or Social Science format.

       -skeys	   Uses specified key in sorting references.  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 below.  They can be searched more rapidly by  running  on  them  before  using
       Failure to index results in a linear search.  When is used with the or preprocessors should be first, to minimize the volume of data passed
       through pipes.

       The preprocessor and associated programs expect input from a file of references composed of records separated by blank lines.  A record	is
       a set of lines (fields), each containing one kind of information.  Fields start on a line beginning with a ``%'', followed by a key-letter,
       then a blank, and finally the contents of the field, and continue until the next line starting with ``%''.  The output ordering and format-
       ting  of  fields is controlled by the macros specified for (for footnotes and endnotes) or (for stand-alone bibliographies).  For a list of
       the most common key-letters and their corresponding fields, see An example of a entry is given below.

Restrictions
       Blank spaces at the end of lines in bibliography fields will cause the records to sort and reverse incorrectly.	Sorting large  numbers	of
       references causes a core dump.

Examples
       %A   M. E. Lesk
       %T   Some Applications of Inverted Indexes on the UNIX System
       %B   UNIX Programmer's Manual
       %V   2b
       %I   Bell Laboratories
       %C   Murray Hill, NJ
       %D   1978

Files
       directory of default publication lists

       directory of companion programs

See Also
       addbib(1), sortbib(1), roffbib(1), indxbib(1), lookbib(1)

																	  refer(1)
All times are GMT -4. The time now is 04:31 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy