mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Created SC2162 read without r w (markdown)
6
SC2162----read-without--r-w.md
Normal file
6
SC2162----read-without--r-w.md
Normal file
@@ -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
|
Reference in New Issue
Block a user