blob: e29cae5cb6b352c0b520bc058fc12b978b8d1c5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
# shellcheck disable=SC2086
# shellcheck source=/dev/null
. ~/.local/lib/shell/lib
file=$HOME/hi
tmp=$(mktemp)
file2=$HOME/hi2
tmp2=$(mktemp)
cat $file | awk -F "," '{
for (i = 1; i <= 100; i++) {
if ($i == 0) {
} else {
print $i
}
}
}' | clean > $tmp
cat $file2 | awk -F "," '{
for (i = 1; i <= 100; i++) {
if ($i == 0) {
} else {
print $i
}
}
}' | clean > $tmp2
diff -y $tmp $tmp2
rm $tmp
if [ -d /tmp/LIB_FILE_TEMP_DIR/ ];then rm -r /tmp/LIB_FILE_TEMP_DIR/; fi
|