echo Current tracks are :- list_tracksechoecho This will (Free web hosting services)
echo Current tracks are :- list_tracksechoecho This will re-enter the tracks for $cdtitle get_confirm && { grep -v ^${cdcatnum}, $tracks_file > $temp_filemv $temp_file $tracks_fileechoadd_record_tracks} fireturn} 9.count_cdsgives us a quick count of the contents of our database. count_cds() { set $(wc -l $title_file) num_titles=$lset $(wc -l $tracks_file) num_tracks=$lecho found $num_titles CDs, with a total of $num_tracks tracksget_returnreturn} 10.remove_recordsstrips entries from the database files, using grep -vto remove all match- ing strings. Notice we must use a temporary file. If we tried to do this, grep -v ^$cdcatnum > $title_filethe $title_filewould be set to empty by the >output redirection before grephad thechance to execute, so grepwould read from an empty file. remove_records() { if [ -z $cdcatnum ]; thenecho You must select a CD firstfind_cd nfiif [ -n $cdcatnum ]; thenecho You are about to delete $cdtitle get_confirm && { grep -v ^${cdcatnum}, $title_file > $temp_filemv $temp_file $title_filegrep -v ^${cdcatnum}, $tracks_file > $temp_filemv $temp_file $tracks_filecdcatnum= echo Entry removed} get_returnfireturn} 88Chapter