Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,12 @@
|
|||
get_nth_line() {
|
||||
local file=$1 n=$2 line
|
||||
while ((n-- > 0)); do
|
||||
if ! IFS= read -r line; then
|
||||
echo "No such line $2 in $file"
|
||||
return 1
|
||||
fi
|
||||
done < "$file"
|
||||
echo "$line"
|
||||
}
|
||||
|
||||
get_nth_line filename 7
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
awk NR==7 filename
|
||||
sed -n 7p filename
|
||||
head -n 7 filename | tail -n 1
|
||||
Loading…
Add table
Add a link
Reference in a new issue