Files
Autodesk-Fusion-360-for-Linux/files/builds/stable-branch/bin/read-text.sh

28 lines
1.7 KiB
Bash
Raw Normal View History

2022-02-21 10:31:41 +01:00
#!/bin/bash
####################################################################################################
# Name: Autodesk Fusion 360 - Setup Wizard (Linux) #
# Description: With this file we can read text files! #
2022-02-21 10:31:41 +01:00
# Author: Steve Zabka #
# Author URI: https://cryinkfly.com #
# License: MIT #
# Copyright (c) 2020-2022 #
# Time/Date: 16:30/21.02.2022 #
# Version: 0.2 #
2022-02-21 10:31:41 +01:00
####################################################################################################
# Path: /$HOME/.config/fusion-360/bin/read-text.sh
2022-02-21 10:31:41 +01:00
###############################################################################################################################################################
# ALL FUNCTIONS ARE ARRANGED HERE: #
###############################################################################################################################################################
# Read a specific line from a text file!
2022-02-21 10:31:41 +01:00
FILE="$1"
LINE_NO=$2
i=0
while read line; do
i=$(( i + 1 ))
test $i = $LINE_NO && echo "$line";
done <"$FILE"