10-09-2006
Quote:
Originally Posted by mohapatra
Hi , Whats the limit of characters PER LINE in a unix file , allowed for editing..sort , cut , sed , awk etc
I think maximum characters per line vary from one version of OS to other .
I found variable
LINE_MAX in limits.h which controls maximum characters per line in HP-UNIX.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Why unix system V has a filename size limit of 14 characters.How other versions of Unix got around this problem.Can anybody help? (7 Replies)
Discussion started by: admirer
7 Replies
2. AIX
Hi,
I'm using AIX version 5.3 currently. I'm trying to create a user id, e.g. andyleong, which the system prompted the length is too long.
1. I would like to know is that the length of user id is limited to maximum 8 characters for AIX.
2. Is it apply to all versions of AIX?
If no... (2 Replies)
Discussion started by: meihua_t
2 Replies
3. HP-UX
Hello everyone.
I am trying to set up a monitor based on a "top" command statistic as follows:
top -bc -n1 > output.txt
I've put this command into a small script which is called by a cron... but there is something strange happening: the cron is limiting the output to output.txt to 80... (3 Replies)
Discussion started by: MartinF
3 Replies
4. Shell Programming and Scripting
In the vi editor, there seems to be some limit on the number of characters could be allowed in single line. I tried a line with characters up to 1880. It worked. But when i tried with something of 5000 characters, it doesnt work. Any suggestions.
Thanks in advance! (2 Replies)
Discussion started by: nram_krishna@ya
2 Replies
5. UNIX for Dummies Questions & Answers
How to bring all characters in one line in unix/solaris ?
Eg :
If it is
a
b
c
then it should show
abc (2 Replies)
Discussion started by: mahen1naik
2 Replies
6. UNIX for Dummies Questions & Answers
I have a script that outputs the weather on two lines.
If possibly I would like to set a character limit on them
Currently it outputs something like
but I would like to limit the lines so appends an ellipsis if nescessary:
This is the script
#! /bin/bash
curl -s --connect-timeout... (2 Replies)
Discussion started by: Light_
2 Replies
7. Shell Programming and Scripting
I have a huge file and I want to select first 10 charcters and last 2 characters of everyline and than will filter the unique line.
I know, it must be easy bt I am new to unix scripting:)
Ex.
I have file as below and need to e3kbaird and last 2 characters. and than unique records.
... (3 Replies)
Discussion started by: Sanjeev Yadav
3 Replies
8. UNIX for Dummies Questions & Answers
Hey guys and gals,
Working on a script to limit the reoccurrance of characters in a line.
sed "/\(.\).*\1/d" -i file.txt
sed "/\(.\).*\1.*\1/d" -i file.txt
sed "/\(.\).*\1.*\1.*1/d" -i file.txt
..
To limit character reoccurance with 1x, 2x, 3x etc.
However I would like to be able to... (2 Replies)
Discussion started by: TAPE
2 Replies
9. Shell Programming and Scripting
Hi, I need some help with this:
I'm making a script which does a couple of things with image files. The script is supposed to echo the number of each image it is processing like this:
Processing image1.jpgThe problem is with images with very long filenames, so I want to know how to limit the... (5 Replies)
Discussion started by: Shadow_Reaper
5 Replies
LEARN ABOUT DEBIAN
unihist
unihist(1) General Commands Manual unihist(1)
NAME
unihist - Generate a histogram of the characters in a Unicode file
SYNOPSIS
unihist ([option flags])
DESCRIPTION
unihist generates a histogram of the characters in its input, which must be encoded in UTF-8 Unicode. By default, for each character it
prints the frequency of the character as a percentage of the total, the absolute number of tokens in the input, the UTF-32 code in hexa-
decimal, and, if the character is displayable, the glyph itself as UTF-8 Unicode. Command line flags allow unwanted information to be sup-
pressed. In particular, note that by suppressing the percentages and counts it is possible to generate a list of the unique characters in
the input.
Output is produced ordered by character code. To sort it in descending order of frequency, pipe the output into the command:
sort -k1 -n -r
By default, unihist handles all of Unicode. To reduce memory usage and increase speed, it may be compiled so as to handle only the Basic
Multilingual Plane (plane 0) by defining BMPONLY.
COMMAND LINE FLAGS
-c Suppress printing of counts and percentages.
-g Suppress printing of glyphs.
-h Print usage information.
-u Suppress printing of the Unicode code as text.
-v Print version information.
SEE ALSO
uniname (1)
REFERENCES
Unicode Standard, version 5.0
AUTHOR
Bill Poser
billposer@alum.mit.edu
LICENSE
GNU General Public License
May, 2008 unihist(1)