Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I redirected the output of ls -lh $ZSH/themes to the file themeslist
and want to extract only pure themes names list to get them prepared for insertion into my .zshrc, but formatted as per:
#3den
#abden
#af-magic
#afowler
#agnoster (and so on)
How do I do this using sed - how do I get rid of all the excessive elements? Thanks!
-rw-rw-r-- 1 tlil tlil 330 Mar 24 15:10 3den.zsh-theme
-rw-rw-r-- 1 tlil tlil 4.5K Mar 24 15:10 adben.zsh-theme
-rw-rw-r-- 1 tlil tlil 986 Mar 24 15:10 af-magic.zsh-theme
-rw-rw-r-- 1 tlil tlil 394 Mar 24 15:10 afowler.zsh-theme
-rw-rw-r-- 1 tlil tlil 7.2K Mar 24 15:10 agnoster.zsh-theme
-rw-rw-r-- 1 tlil tlil 1.1K Mar 24 15:10 alanpeabody.zsh-theme
-rw-rw-r-- 1 tlil tlil 748 Mar 24 15:10 amuse.zsh-theme
-rw-rw-r-- 1 tlil tlil 822 Mar 24 15:10 apple.zsh-theme
-rw-rw-r-- 1 tlil tlil 506 Mar 24 15:10 arrow.zsh-theme
-rw-rw-r-- 1 tlil tlil 325 Mar 24 15:10 aussiegeek.zsh-theme
-rw-rw-r-- 1 tlil tlil 3.4K Mar 24 15:10 avit.zsh-theme
-rw-rw-r-- 1 tlil tlil 750 Mar 24 15:10 awesomepanda.zsh-theme
-rw-rw-r-- 1 tlil tlil 980 Mar 24 15:10 bira.zsh-theme
-rw-rw-r-- 1 tlil tlil 979 Mar 24 15:10 blinks.zsh-theme
-rw-rw-r-- 1 tlil tlil 3.3K Mar 24 15:10 bureau.zsh-theme
-rw-rw-r-- 1 tlil tlil 1.2K Mar 24 15:10 candy-kingdom.zsh-theme
-rw-rw-r-- 1 tlil tlil 365 Mar 24 15:10 candy.zsh-theme
-rw-rw-r-- 1 tlil tlil 1.3K Mar 24 15:10 clean.zsh-theme
-rw-rw-r-- 1 tlil tlil 476 Mar 24 15:10 cloud.zsh-theme
-rw-rw-r-- 1 tlil tlil 372 Mar 24 15:10 crcandy.zsh-theme
-rw-rw-r-- 1 tlil tlil 1.9K Mar 24 15:10 crunch.zsh-theme
-rw-rw-r-- 1 tlil tlil 262 Mar 24 15:10 cypher.zsh-theme
Lads, could you please point me to some good materials where I could learn those things in-depth? I mean, sed, awk, (ba)sh power tricks... Thanks a million!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.