Announcement
Collapse
No announcement yet.
Numerous linux hangovers?
Collapse
This topic is closed.
X
X
-
Windows no longer obstructs my view.
Using Kubuntu Linux since March 23, 2007.
"It is a capital mistake to theorize before one has data." - Sherlock Holmes
- Top
- Bottom
-
I have "apt list --installed | grep -i" aliased to "apli" and soCode:apli linux-image
Kubuntu 20.04
- Top
- Bottom
Comment
-
@kubicle, I have yet another question about your script!
Since I don't have any "rc" files left, I'm usingCode:PCKGS=$(COLUMNS=200 dpkg -l | grep breeze | tr -s ' ' | cut -d ' ' -f 2)
Code:PCKGS=$(COLUMNS=200 dpkg -l | grep "^rc" | tr -s ' ' | cut -d ' ' -f 2)
First, I runCode:COLUMNS=200 dpkg -l | grep breeze | tr -s ' ' | cut -d ' ' -f 2 > ~/Desktop/breeze.txt
Now, I runCode:PCKGS=$(COLUMNS=200 dpkg -l | grep "^rc" | tr -s ' ' | cut -d ' ' -f 2)
Code:echo ${PCKGS}
Code:breeze breeze-cursor-theme breeze-gtk-theme breeze-icon-theme kde-style-breeze kwin-style-breeze libreoffice-style-breeze sddm-theme-breeze
Kubuntu 20.04
- Top
- Bottom
Comment
-
Originally posted by chimak111 View PostThe question: how do spaces appear between the package names? What does "echo ${PCKGS}" do to convert the "one package name per line" (as seen in the image) to the single line output with package names separated by spaces?
echo "${PCKGS}" vs. echo ${PCKGS}
- Top
- Bottom
Comment
-
Originally posted by kubicle View PostIf you wish to preserve control chars, you'd put the variable in double quotes, otherwise they are replaced by spaces.
echo "${PCKGS}" vs. echo ${PCKGS}Kubuntu 20.04
- Top
- Bottom
Comment
-
Originally posted by chimak111;445046...Each line ends with a pilcrow (?) ...
Code:set nu list lcs=eol:?
Regards, John Little
- Top
- Bottom
Comment
-
Originally posted by jlittle View PostTaking that question mark as implying a question, your .vimrc (or some other rc file) includes something like
Code:set nu list lcs=eol:?
I haveCode:set list listchars=tab:→\ ,nbsp:␣,eol:?
Kubuntu 20.04
- Top
- Bottom
Comment
Comment