Home
Submit
Free Hosting
Link To Us
Contacts
Bash Reading lines in etc
Bash
Download
(.zip)
#!/bin/bash
# Reading lines in /etc/fstab.
File=/etc/fstab
{
read line1
read line2
} < $File
echo "First line in $File is:"
echo "$line1"
echo
echo "Second line in $File is:"
echo "$line2"
exit 0
Bash
Adding a second hard drive to system
Array String operations
Breaking out of loops
Bash
Broken Link
Counting
Delete files in a folder
Bash
Echoing text messages in color
Echoing weird variables
Greetings
Bash
Invoke with command line parameter to exercise last section of this script
Locate matching strings in a binary file
Mysterious binaries
Bash
Playing games with anagrams
Print a number to different bases
Print all user profiles