From 671fd82985971ba50b81ac58b1353bd3af4ff104 Mon Sep 17 00:00:00 2001 From: DavidPontient Date: Mon, 14 Oct 2024 11:17:30 +0200 Subject: [PATCH] Created SC2162 read without r w (markdown) --- SC2162----read-without--r-w.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 SC2162----read-without--r-w.md diff --git a/SC2162----read-without--r-w.md b/SC2162----read-without--r-w.md new file mode 100644 index 0000000..efa98cb --- /dev/null +++ b/SC2162----read-without--r-w.md @@ -0,0 +1,6 @@ +#!/usr/bin/env bash +#using cut command and wile loop +#cut -d ':' -f1,3,6 /etc/passwd +cut -d ':' -f1,3,6 /etc/passwd | while read line;do +echo "$line" +done \ No newline at end of file