Lateo.net - Flux RSS en pagaille (pour en ajouter : @ moi)

🔒
❌ À propos de FreshRSS
Il y a de nouveaux articles disponibles, cliquez pour rafraîchir la page.
À partir d’avant-hiernixCraft

Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File )

Par : Vivek Gite
See all GNU/Linux related FAQ

Most Linux and UNIX-like system configuration files are documented using comments, but sometimes I just need to see a line of configuration text in a config file. How can I view just the uncommented configuration file directives from squid.conf or httpd.conf file? How can I strip out comments and blank lines on a Linux or Unix-like system?

Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit

The post Linux / UNIX View Only Configuration File Directives ( Uncommented Lines of a Config File ) appeared first on nixCraft.

How to sed remove last character from each line

Par : Vivek Gite

I need to remove the last character from a line and shell variable such as "${_allowed_ips}". For example, each line is as follows in my file:
foo,
bar,
demo,

I need output as follows:
foo
bar
demo
.
How can I use sed to delete the last character?

The post How to sed remove last character from each line appeared first on nixCraft.

❌