LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-04-2005, 09:45 PM   #1
Chomper
LQ Newbie
 
Registered: Jan 2005
Location: Columbus Ohio
Distribution: Slackware 11
Posts: 23

Rep: Reputation: 15
bash: pg: command not found


Hi...

I'm reading a book (Linux and Unix Shell Programming) and it tells me to do this:

Code:
$ pg var_test 
#!/bin/sh 
# var_test 
echo "First Name :\c" 
read name 
echo "Middle Name :\c" 
read middle 
echo "Last name :\c" 
read surname
when i try...i get this
Code:
$ pg var_test
bash: pg: command not found
i was wondering if this "pg" is a command specific only to straight-up Unix or certain types of Linux, and if so, what is the analogous command for FC3 ?

Any help is greatly appreciated. Thanks!!
 
Old 02-04-2005, 10:07 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
pg is short for pager. You could use less instead.
 
Old 02-05-2005, 03:22 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,793

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
Right, pg was written to overcome a "more" command limitation not allowing going backward on a file, and exists on Unix system V systems only I think.
Both modern "more" and the freeware "less" are providing this feature, making pg somewhat obsolete.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 02:04 AM
bash: g++: command not found m_lp_ql_m Linux - Software 8 07-08-2010 02:45 PM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 09:52 AM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 11:11 AM
bash: command not found jc80 Fedora 3 03-14-2004 04:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration