Skip to content

Zee's Blog

zee.balogh.sk

Menu

  • Projects
  • About

ShellScripting

Some ‘bash’ Magic

Proces the content of /etc/passwd file field by field Here IFS sets the “internal field delimiter” to “:”, but only inside the while loop. You must NOT reset it to the original value. while IFS=: read name passwd uid gid

admin 17.03.200901.04.2009 Uncategorized No Comments Read more

‘grep’ Command Examples

Greping beginning of line: $ cat file | grep ‘^text’ x

admin 17.03.200927.03.2009 Uncategorized No Comments Read more

‘date’ Command Examples

The date and time of the server. $ date Tue Mar 17 18:13:30 CET 2009 Set the date to the date and time shown: $ date -s “11/20/2008 12:48:00” List the time and date in the below format: $ date

admin 17.03.200927.03.2009 Uncategorized No Comments Read more

Search

Tags

Apache BlackList Business CentOS CheetSheet Cloud Conferences Containers Crisis Response Debian DIY DNS FileSystem Garden Git House Infrastructure JSON Letsencrypt Linux LVM LXC Magento Mail MailAdmin MongoDB msec MySQL NodeJS NoSQL OpenVZ OSX Perl Phalcon PHP Postfix proftpd Proxmox Research Security ShellScripting SSL Ubuntu VirtualBox Virtualization

webhosting

.host2u.sk

Please follow & like :)

RSS
Facebook
fb-share-icon
Twitter
Visit Us
Follow Me
Tweet
Share
Copyright © 2023 Zee's Blog. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.
  • Projects
  • About