Unix & Linux Stack Exchange
Q&A for users of Linux, FreeBSD and other Unix-like operating systems
Latest Questions
57
votes
11
answers
86501
views
Terminal-based spreadsheets and wordprocessor?
Are there any (good) *terminal based* (ie. runs in a VT, not in GUI/X) spreadsheets or wordprocessors for Unix/Linux? Can anybody remember the name of such programs which were popular before (eg. before X became so widespread)? I know the "correct" way of doing wordprocessing in Unix is using a mark...
Are there any (good) *terminal based* (ie. runs in a VT, not in GUI/X) spreadsheets or wordprocessors for Unix/Linux? Can anybody remember the name of such programs which were popular before (eg. before X became so widespread)?
I know the "correct" way of doing wordprocessing in Unix is using a markup-language like LaTeX or GROFF together with a simple editor like vi or emacs... But what I'm wondering about, is if there is - or was (anybody remember an older program that did this?) - something like the old MS-DOS (pre-Windows) WordPerfect-like program for Unix? Where you didn't have true WYSIWYG, but where things like emphesize and underline was marked in the text with colors, reverse video and such.
Programs that are more "front ends" for LaTeX or some XML-format to create wordprocess-documents are also of interest, provided they use the terminal and use colors and such to mark things like emphesized text (rather than you see the latex format-code). Eg. you press CTRL-I, the text you write turns reverse video, and is written to file inbetween format-codes for emphesize.
Baard Kopperud
(7253 rep)
Feb 17, 2014, 03:27 PM
• Last activity: May 6, 2025, 12:07 AM
0
votes
1
answers
57
views
Office suite for Solaris 11
Are there office suites or software for Solaris 11? OpenOffice, OnlyOffice, LibreOffice, etc.
Are there office suites or software for Solaris 11? OpenOffice, OnlyOffice, LibreOffice, etc.
Logos
(3 rep)
Jan 14, 2025, 08:25 PM
• Last activity: Jan 15, 2025, 08:43 AM
0
votes
0
answers
229
views
font madness on linux desktop
I am using Debian 10. `fc-list` shows following fonts installed on my system: $ fc-list | cut -d':' -f2 | sort -u Bitstream Charter Century Schoolbook L Courier 10 Pitch DejaVu Sans DejaVu Sans Mono DejaVu Serif Dingbats Inconsolata Inconsolata for Powerline Nimbus Mono L Nimbus Roman No9 L Nimbus S...
I am using Debian 10.
Most of the idiotic fonts displayed seem to have been installed via package
fc-list
shows following fonts installed on my system:
$ fc-list | cut -d':' -f2 | sort -u
Bitstream Charter
Century Schoolbook L
Courier 10 Pitch
DejaVu Sans
DejaVu Sans Mono
DejaVu Serif
Dingbats
Inconsolata
Inconsolata for Powerline
Nimbus Mono L
Nimbus Roman No9 L
Nimbus Sans L
Standard Symbols L
URW Bookman L
URW Chancery L
URW Gothic L
URW Palladio L
and here is the selection of fonts I see available in my document editor Abiword
:

gsfonts
:
# fc-list | grep gsfonts | cut -d':' -f2 | sort -u
Century Schoolbook L
Dingbats
Nimbus Mono L
Nimbus Roman No9 L
Nimbus Sans L
Standard Symbols L
URW Bookman L
URW Chancery L
URW Gothic L
URW Palladio L
gsfonts
was installed as a dependency for several packages (abiword
, gnumeric
, libmagickcore-6.q16-6
) so I cannot remove this package.
**Is there a way to hide these useless fonts from the font selection in my editor? (or globally for all applications)**
I am sure I will never need Dingbats
or URW Chancery L
fonts when writing letters in my editor. The long list of available fonts only confuses me, every time I have to look for the 2 or 3 fonts that are actually useful. It steals few seconds of my life each time I have to sort through the list.
Also, a side-question, the drop-down list shown in the screenshot of Abiword
shows 3 generic fonts that are not listed by fc-list
: Monospace
, Sans
, Serif
. Where do these come from? Are these hardcoded in Abiword
? Or are these just aliases pointing to the specific fonts?
Lastly, does anybody really need Dingbats
font (perhaps for displaying pdfs
?)
Or is it installed by gsfonts
only to increase the bloat?
Martin Vegter
(586 rep)
Oct 30, 2022, 06:23 AM
• Last activity: Oct 30, 2022, 09:14 AM
0
votes
1
answers
71
views
Get rid of UNIX redirection newly created file without using rm
Using below function to filter out text file and organize to new format. Using unix redirection `>` command to create new files. **How can I get rid of creating all new files** > (e.g. ${file}_final_1.txt,${file}_only_${pattern}.txt) **without deleting it afterword using `rm` command ?** ``` filter(...
Using below function to filter out text file and organize to new format.
Using unix redirection
>
command to create new files.
**How can I get rid of creating all new files**
> (e.g. ${file}_final_1.txt,${file}_only_${pattern}.txt)
**without deleting it afterword using rm
command ?**
filter(){
cat ${file}_1.txt | grep -v ${pattern} > ${file}_final_1.txt
cat ${file}_1.txt | grep ${pattern} > ${file}_only_${pattern}.txt
cat ${file}_only_${pattern}.txt | nawk -F '|' '{ print $NF}' > ${pattern}_TS.txt
paste ${pattern}_TS.txt ${file}_only_${pattern}.txt > ${pattern}_TS_file.txt
cat ${pattern}_TS_file.txt | grep "|${DT}|" | grep ${pattern} | sort -r | head -1 > ${file}_f.txt
cat ${file}_f.txt >> ${file}_final_1.txt
dos2unix ${file}_final_1.txt ${file}_final.txt
}
Rocky
(3 rep)
Aug 23, 2022, 02:42 PM
• Last activity: Aug 23, 2022, 03:09 PM
12
votes
5
answers
76532
views
How to read Word .doc files?
How can we read Microsoft Word (`.doc`) files in a Linux system? It doesn't support `.doc` files. I tried > `strings filename.doc | less` but it gives ugly output. Any other option? I would prefer a GUI based tool.
How can we read Microsoft Word (
.doc
) files in a Linux system? It doesn't support .doc
files. I tried
> strings filename.doc | less
but it gives ugly output. Any other option?
I would prefer a GUI based tool.
Chankey Pathak
(1893 rep)
Aug 7, 2011, 09:13 AM
• Last activity: May 5, 2021, 09:27 PM
5
votes
1
answers
577
views
Synonyms (from a thesaurus) in Emacs
I use Emacs 23 on Debian sid. I can check the spelling of a word in Emacs with `M-$`. How can I obtain synonyms (using a thesaurus?) for a word in Emacs? None of the following were useful: [one][1], [two][2], [three][3]. If I download `synonyms.el` from the second link, where should I place it? Do I...
I use Emacs 23 on Debian sid. I can check the spelling of a word in Emacs with
M-$
. How can I obtain synonyms (using a thesaurus?) for a word in Emacs?
None of the following were useful: one , two , three . If I download synonyms.el
from the second link, where should I place it? Do I need to download a thesaurus as well?
SabreWolfy
(1174 rep)
Jan 10, 2013, 02:01 PM
• Last activity: May 29, 2020, 07:15 AM
0
votes
2
answers
1830
views
Output number of words, characters, or lines in an .doc or .docx document from command line
I have a folder full of .doc or .docx files. I'd like to know how many words--or, failing that, characters or lines--are in each file without opening each one of them. (Use case: I'm a TA who needs to grade a ton of reading responses each week for completion.) Is there some way to do this from comma...
I have a folder full of .doc or .docx files. I'd like to know how many words--or, failing that, characters or lines--are in each file without opening each one of them. (Use case: I'm a TA who needs to grade a ton of reading responses each week for completion.)
Is there some way to do this from command line? I'd eventually like to get all of this in a .csv file. I'm happy to download some utility to do this.
I run Arch linux, if that matters.
Pierce
(1 rep)
Jan 13, 2016, 03:34 PM
• Last activity: Oct 10, 2019, 06:57 PM
1
votes
2
answers
2220
views
Add line breaks to Grep Commands
How can I add a few line breaks? I want it to show `OpenFin` category, have a line break, `Chrome` category, another line break, then `memoryInfo`. Here is what I have so far: cat LoginExInternal.txt | grep OpenFin >> LoginExcInternal.txt | echo $'\r' && cat LoginExInternal.txt | grep Chrome >> Logi...
How can I add a few line breaks? I want it to show
OpenFin
category, have a line break, Chrome
category, another line break, then memoryInfo
.
Here is what I have so far:
cat LoginExInternal.txt | grep OpenFin >> LoginExcInternal.txt | echo $'\r'
&& cat LoginExInternal.txt | grep Chrome >> LoginExcInternal.txt | echo $'\r'
&& cat MemoryUnderThreshold.txt | grep memoryInfo:jsHeapSizeLimit:1 >> LoginExcInternal.txt | echo $'\r'
I can't seem to get it into new lines though, the echo $'\r'
doesn't seem to work. Please tell me how I can modify to make this work.
Ibrahim A
(71 rep)
Mar 13, 2019, 12:49 PM
• Last activity: Mar 13, 2019, 01:18 PM
0
votes
1
answers
29
views
Remove specific words within lines
I have a text file that has something like this: loginName: Name1 userAgent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/ (KHTML like Gecko) Chrome/61.0.3163.104 OpenFin/9.61.31.74 loginName: Name2 userAgent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/ (KHTML like Gecko) Chrome/61.0...
I have a text file that has something like this:
loginName: Name1 userAgent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/ (KHTML like Gecko) Chrome/61.0.3163.104 OpenFin/9.61.31.74
loginName: Name2 userAgent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/ (KHTML like Gecko) Chrome/61.0.3163.112
loginName: Name3 userAgent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/ (KHTML like Gecko) Chrome/61.0.3163.105 OpenFin/9.61.31.78
loginName: Name4 userAgent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/ (KHTML like Gecko) Chrome/61.0.3163.100
Some has only
Chrome/X.X.X.X
and others have Chrome/X.X.X.X OpenFin/X.X.X.X
The ones that only have Chrome/X.X.X.X
, I want to leave them alone. The ones that include OpenFin/X.X.X.X
, I want to remove Chrome/X.X.X.X
from those lines.
I tried the following but had no luck.
sed 's/Chrome*.*OpenFin/OpenFin/' filename
Ibrahim A
(71 rep)
Mar 12, 2019, 01:34 PM
• Last activity: Mar 12, 2019, 01:35 PM
3
votes
2
answers
299
views
Sed: modify every non-first word repetition for every word in text
I need to do something like that using sed? qq ab xyz ab qq aa ab Becomes: qq ab xyz +ab+ +qq+ aa +ab+
I need to do something like that using sed?
qq ab xyz ab qq aa ab
Becomes:
qq ab xyz +ab+ +qq+ aa +ab+
mma
(33 rep)
Dec 3, 2014, 02:45 PM
• Last activity: Nov 25, 2018, 12:24 AM
9
votes
5
answers
16037
views
Editing RTF files in text mode
I have a bunch of CLI-only computers (I have not bothered to set up a GUI yet). I'm comfortable enough in the CLI to not NEED a GUI for most things. However, as a student, turning in Plain-Text documents really doesn't cut it. Is there a way to edit Rich Text Format (.rtf) files from a CLI without p...
I have a bunch of CLI-only computers (I have not bothered to set up a GUI yet). I'm comfortable enough in the CLI to not NEED a GUI for most things. However, as a student, turning in Plain-Text documents really doesn't cut it.
Is there a way to edit Rich Text Format (.rtf) files from a CLI without popping into a GUI? I'd just need justification (Right, Left, Center), bolding, italics, and a bit of fonts (Sometimes I need to pad my Times New Roman font to a full 13 points to reach a page limit).
Heck, it could all be done manually in HTML, with a web-browser engine, and saving to the interesting .rtf font symbols instead of HTML tags.
Anybody know a way for me to do this?
Aviator45003
(759 rep)
Feb 7, 2013, 01:21 AM
• Last activity: Mar 6, 2018, 08:10 PM
0
votes
1
answers
93
views
Minimalistic text editor/document processor?
I am looking for an open source word processor that can do the following: - Text size - Access a font database - Big font/cursive - Tables - List - Non-analogue imitation
I am looking for an open source word processor that can do the following:
- Text size
- Access a font database
- Big font/cursive
- Tables
- List
- Non-analogue imitation
h_o_rng
(1 rep)
Sep 15, 2017, 03:04 PM
• Last activity: Sep 15, 2017, 04:39 PM
-4
votes
1
answers
146
views
Removing each row that possesses a singleton in the first column
I would like to remove each row that possesses a singleton in the first column. e.g. Input: Letters represent variables of which there may be thousands. Numbers represent columns and rows. There are multiple columns (not shown here). 1. 1. A 2. B 3. C 4. C 5. D 6. E 7. A 8. H 9. D 10. D Output: 1. 1...
I would like to remove each row that possesses a singleton in the first column. e.g.
Input: Letters represent variables of which there may be thousands. Numbers represent columns and rows. There are multiple columns (not shown here).
1.
1. A
2. B
3. C
4. C
5. D
6. E
7. A
8. H
9. D
10. D
Output:
1.
1. A
3. C
4. C
5. D
7. A
9. D
10. D
P.tin
(53 rep)
Aug 24, 2017, 05:50 PM
• Last activity: Aug 24, 2017, 10:00 PM
0
votes
3
answers
11298
views
How to [constantly] read the last line of a file?
I have client filtering out data from an live MQTT stream which writes the data into a `myfile.csv` file, here are the last four lines: 1426134425,m,NWRL,MSV,001,d,SVlts,139,1840343,26089,28529,15987 1426134444,m,NWRL,MSV,001,d,status,139,1859000,23911,-33.836465,151.051189 1426134834,m,gf,TMX6BP,07...
I have client filtering out data from an live MQTT stream which writes the data into a
myfile.csv
file, here are the last four lines:
1426134425,m,NWRL,MSV,001,d,SVlts,139,1840343,26089,28529,15987
1426134444,m,NWRL,MSV,001,d,status,139,1859000,23911,-33.836465,151.051189
1426134834,m,gf,TMX6BP,075,d,SVlts,216,1243746,27209,27409,17106
1426134845,m,gf,TMX6BP,075,d,status,216,1254000,179583,-33.836465,151.051189
This file constantly gets updated. So the last line of the csv file would constantly be changing however it would still be in the same format.
__Q:__ How can I read the last line where the 7th value is 'status' not 'SVlts' of the myfile.csv
file with bash? Once read how can I assign the 4th, 5th and 10th value to a 3 different variables? I will be pushing these values out to update a MySQL table.
So the output can be something as follows:
variable_1=TMX6BP
variable_2=075
variable_3=179583
As mentioned these three variables will be pushed/sent out to update a MySQL table (which needs these three variables in order to update itself) until the next line is printed in to the myfile.csv
. And this will happen over and over again.
3kstc
(4996 rep)
Mar 12, 2015, 05:10 AM
• Last activity: Mar 13, 2015, 12:13 PM
0
votes
1
answers
214
views
Unable to print awk'ed datum in bash script
I am dumping datum into a csv file (my_datum_file.csv). The [contents](http://www.codeshare.io/vnkkQ) are all comma seperated, and I want to find the _last_ instance of the 4th parameter (i.e. the last instance of datum regarding MX3, TMX, MSV, etc. where printed). The 5th parameter is a 'subclass'...
I am dumping datum into a csv file (my_datum_file.csv). The [contents](http://www.codeshare.io/vnkkQ) are all comma seperated, and I want to find the _last_ instance of the 4th parameter (i.e. the last instance of datum regarding MX3, TMX, MSV, etc. where printed). The 5th parameter is a 'subclass' of the 4th parameter (ie TMX has 098 and 001). It is also important that the 7th parameter be "status" as opposed to "SVlts". __Q:__ I want the 10th value (which is a period of time in minutes) to convert to hours. I would like to print this value out.
So from the terminal I wrote:
$ cat /home/ed/start_up_job/my_datum_file.csv | awk -F, '( $4 == "TMX" ) && ( $5 == "098" ) && ( $7 == "status" ) {print $10/60}' | tail -1`'
The end result is 1022.25 hours, which is great;
I've embedded this into generic little bash script
#!/bin/bash
machine_ID="$1"
machine_number="$2"
echo "$1 $2 hours is awk -F, -v MID="$machine_id" -v MNR="$machine_number" '( $4 == MID ) && ( $5 == MNR ) && ( $7 == "status" ) {t=$10} END{print int(t/60)}' /home/ed/start_up_job/my_datum_file.csv
"
so when I call my bash script from the terminal $ ./myscript.txt TMX 098
I get the following output TMX 098 hours is: 0
My expected output would be TMX 098 hours is: 1022.25
I don't know what is wrong?
3kstc
(4996 rep)
Mar 4, 2015, 11:06 PM
• Last activity: Mar 5, 2015, 09:02 PM
3
votes
1
answers
3794
views
Are there any MathType clones for Open/Libre - Office?
Are there any OpenOffice.org/LibreOffice equation editor/makers, similar to [MathType](https://secure.wikimedia.org/wikipedia/en/wiki/MathType)?
Are there any OpenOffice.org/LibreOffice equation editor/makers, similar to [MathType](https://secure.wikimedia.org/wikipedia/en/wiki/MathType) ?
LanceBaynes
(41465 rep)
May 12, 2011, 05:41 PM
• Last activity: May 3, 2014, 10:44 PM
3
votes
1
answers
1837
views
add new language to /usr/share/dict/words
In this directory I have English dict and my language file, but where I can download other language? Or maybe you known other free dictionary? I need to make list of word that are not in the dictionary.
In this directory I have English dict and my language file, but where I can download other language? Or maybe you known other free dictionary? I need to make list of word that are not in the dictionary.
zxczxczxc
(31 rep)
Sep 23, 2012, 06:56 PM
• Last activity: Oct 23, 2012, 08:04 PM
0
votes
2
answers
621
views
Linux for a writer, running on a Pentium II
> **Possible Duplicate:** > [Linux for low-end hardware and internet browsing](https://unix.stackexchange.com/questions/2059/linux-for-low-end-hardware-and-internet-browsing) My dad has a rather old computer that's just sitting there that I want to repurpose. Now I know could probably get a Pentium...
> **Possible Duplicate:**
> [Linux for low-end hardware and internet browsing](https://unix.stackexchange.com/questions/2059/linux-for-low-end-hardware-and-internet-browsing)
My dad has a rather old computer that's just sitting there that I want to repurpose. Now I know could probably get a Pentium 4 very cheap but where's the fun in that?
What I'm after is something that's simple to use that will run on a Pentium II or III (I can't remember) with 4GB of HDD space and probably about 512MB of RAM.
What can I install on this to make it work?
Michael Frank
(145 rep)
Jun 11, 2012, 09:17 AM
• Last activity: Jun 11, 2012, 10:58 AM
Showing page 1 of 18 total questions