This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grep -r '#!/bin/bash' /etc 2> /dev/null | sed 's/:.*$//' | while read line;do sed 's;#!/bin/bash;#!/usr/local/bin/bash;' $line > ~/hoge/$(basename $line) ;done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cut -d":" -f7 /etc/passwd | grep -E '(sh$|in$)' | sort | uniq -c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cut -d":" -f1 /etc/passwd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
#coding: utf-8 | |
for x in range(1, 100): | |
flag = x > 1 | |
for y in range(2, x+1): | |
if x % y == 0: | |
if x != y: | |
flag = 0 | |
break | |
print('jojo!!' if flag else x) |
NewerOlder