#!/bin/bash if [ -f nowcoder.txt ]; then line=$(sed -n '5p' nowcoder.txt) echo $line else echo "File nowcoder.txt does not exist." fi
#!/bin/bash if [ -f nowcoder.txt ]; then line=$(sed -n '5p' nowcoder.txt) echo $line else echo "File nowcoder.txt does not exist." fi