Re: shell editor

2017-09-25 Thread Linux for blind general discussion
The truncate command will likely have an undesired side-effect: if the file is smaller than the target size, it will be generally be padded with binary zeroes to force it to be the specified size. If pure truncation is desired, might I suggest the dd command instead: dd if=input-file

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
On September 25, 2017, Linux for blind general discussion wrote: > to the best of my knowledge, and I will check on this lol. word > count is all I can recall. Huh, I was nearly certain that WP had a character-count functionality, but pulling it up, I can't seem to find it. Granted, I'm trying

re: this needs testing

2017-09-25 Thread Linux for blind general discussion
I forgot three lines in earlier version. This one uses fold to force creation of 80 character lines making it easier to edit rather than just leaving a single line in the file and that happens before editing of file can happen. cut here. #!/usr/bin/env bash # file: fcl.sh - file with

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
Emacs can do this Devin Prater Assistive Technology Instructor in Training: JAWS certified. From: blinux-list-boun...@redhat.com on behalf of Linux for blind general discussion Sent: Monday, September 25,

this needs testing

2017-09-25 Thread Linux for blind general discussion
#!/usr/bin/env bash # file: fcl.sh - file with character limit script. echo -c "character limit for file:" read lim=$REPLY echo -c "file name to edit" read ef=$REPLY truncate --size=$lim $ef echo "remember only change lines in $ef to stay inside character limits." nano $ef wc -c $ef --

re: shell editor

2017-09-25 Thread Linux for blind general discussion
This isn't what was requested, but I'm pretty certain it will be useful nonetheless. The truncate command can create a file and make it a specific number of characters in size. Truncation happens from the end of the file if too large. So truncate 1 file.txt would make a file 1

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
to the best of my knowledge, and I will check on this lol. word count is all I can recall. However, a tiny bell is now ringing hinting at a place I have not checked, so we shall see. Karen On Mon, 25 Sep 2017, Linux for blind general discussion wrote: Tim following up to my previous

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
Hi, Thanks, I will see if either exist on our Linux shell as I do not run Linux so to speak, simply telnet to shell editions. Thanks again, Kare On Mon, 25 Sep 2017, Linux for blind general discussion wrote: On Mon, Sep 25, 2017 at 1:07 PM, Linux for blind general discussion

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
Hi, Indeed just a text file, since I will be placing it elsewhere. will explore the wc option, or nano. thanks again, Karen On Mon, 25 Sep 2017, Linux for blind general discussion wrote: On September 25, 2017, Linux for blind general discussion wrote: I can use wordperfect for word

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
Tim following up to my previous email: also, if you run the DOS version of Word Perfect, it should also give you document statistics. -tim ___ Blinux-list mailing list Blinux-list@redhat.com https://www.redhat.com/mailman/listinfo/blinux-list

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
Sorry, I just noticed that you were looking for a shell editor. Neither of the editors I mentioned qualify. Best regards, Paul -- [Notice not included in the above original message: The U.S. National Security Agency neither confirms nor denies that it intercepted this message.]

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
On September 25, 2017, Linux for blind general discussion wrote: > I can use wordperfect for word count. still I am writing something > that requires a character limit. Tim here. Any editor that lets you write your document contents through an external pipe should suffice. Ed, vi/vim, and

Re: editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
On Mon, Sep 25, 2017 at 1:07 PM, Linux for blind general discussion wrote: > Hi, > I can use wordperfect for word count. still I am writing something that > requires a character limit. > Ideas? The NoteCase Pro outliner has this feature. .

editor in linux shell that does charactor count?

2017-09-25 Thread Linux for blind general discussion
Hi, I can use wordperfect for word count. still I am writing something that requires a character limit. Ideas? Thanks, Karen "No one is born hating another person because of the color of his skin or his background or his religion ... People must learn to hate, and if they can learn to hate,