Register
It is currently Sat Nov 22, 2014 2:51 am

baps - Bash Address & Phone-number Scripts


All times are UTC - 6 hours


Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 PostPosted: Fri Oct 21, 2005 1:06 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
Just a simple script for phone numbers/addresses. No way to add to the flat file yet.... but it is easy to search ;)

Code:
#!/bin/bash
#
##########################
# USA Linux Users Group  #
# http://www.usalug.org  #
# http://bashscripts.org #
##########################

#######################################################
#     baps - Bash Address & Phone-number Scripts      #
#######################################################
#
#
#    FILE: baps
# VERSION: See variable below
#    DATE: See variable below
#
#  AUTHOR: Crouse - Please visit bashscripts.org and usalug.org
#
#
########################################################

######################
# Start of Variables #
######################
#
#
#########################################################
                                                       ##
baps_version="0.1.0"                                   ##
revision_date="Modified October 21, 2005"              ##
author="Created by: Dave Crouse"                       ##
                                                       ##
#########################################################
#
#
######################
# End of Variables   #
######################

headerfile ()
{
clear; echo "
(B)ash (A)ddress and (P)hone (S)cripts
                baps - Version $baps_version ";
mkdir -p ~/.baps; touch ~/.baps/addressandphone.data; touch ~/.baps/temp.data;
echo "*****************************************************"; nl -ba ~/.baps/temp.data;
echo "*****************************************************";
}

while true; do headerfile; cat /dev/null > ~/.baps/temp.data
  read -p "Search for : " searchforthis
     if [[ $searchforthis != "" ]]
      then
   grep -i "$searchforthis" ~/.baps/addressandphone.data > ~/.baps/temp.data
   headerfile
      else
        echo ""
   echo "Sorry, you must enter something to search for!"
   read -p "Hit any key to continue. " temp
     fi
done; exit


Top
 Profile WWW  
 PostPosted: Tue Oct 25, 2005 12:16 am   
Site Admin
User avatar

Joined: Sun May 15, 2005 9:36 pm
Posts: 673
Location: Des Moines, Iowa
Updated..... see new thread......


Top
 Profile WWW  
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron


BashScripts | Promote Your Page Too
Powered by phpBB © 2011 phpBB Group
© 2003 - 2011 USA LINUX USERS GROUP