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

Copyright © 2025 Zee's Blog. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.
  • Projects
  • About