blob: 15b005c8aa0e841672270f1a80374e2068737c11 (
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
|
#! /usr/bin/env dash
# shellcheck disable=SC2086
# shellcheck source=/dev/null
. %SHELL_LIBRARY_PATH
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
|