The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Perl cmds doesn't work in Bash shell . Plz help adc22 Shell Programming and Scripting 6 11-22-2008 10:00 AM
substring command works but only in BASH shell edwardtk11 Shell Programming and Scripting 2 06-27-2007 06:25 PM
Using variable with cp command in bash shell maheshsri Shell Programming and Scripting 4 12-04-2006 01:30 PM
command for CPU online/offline status in bash shell sars UNIX for Advanced & Expert Users 5 11-30-2006 06:10 PM
bash pattern matching echo *[! '/' ] doesn't work james hanley UNIX for Dummies Questions & Answers 1 07-16-2006 06:10 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 11-25-2008
npatwardhan npatwardhan is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 135
more command does not work in bash shell

is there a different command to display contents of a file on the output in bash shell? i tried more and it does not work.
  #2 (permalink)  
Old 11-25-2008
Autocross.US's Avatar
Autocross.US Autocross.US is offline
Registered User
  
 

Join Date: Nov 2008
Location: Chesapeake, VA
Posts: 73
How about 'less'?
  #3 (permalink)  
Old 11-25-2008
Franklin52 Franklin52 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2007
Posts: 4,322
Quote:
Originally Posted by npatwardhan View Post
is there a different command to display contents of a file on the output in bash shell? i tried more and it does not work.
Strange, other commands to display the contents of a file:

pg
less
cat
view (vi in view mode)

Regards
  #4 (permalink)  
Old 11-25-2008
npatwardhan npatwardhan is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 135
pg didnt work. all the others did.
thanks
  #5 (permalink)  
Old 11-25-2008
joeyg's Avatar
joeyg joeyg is offline Forum Staff  
modérateur
  
 

Join Date: Dec 2007
Location: Home of 17-time world champion Boston Celtics
Posts: 1,311
Wink

I am wondering about your PATH setting. Of course, that depends on what happens when you try to use the more command - do you get a file not found, or what is the error.

Also, by typing
which more
(you can do with any command)
you will see where it is looking/finding the program
  #6 (permalink)  
Old 11-25-2008
npatwardhan npatwardhan is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 135
i get a bash:more: command not found error.

when i did which more it looked in the PATH variable. its strange that there is not $SHELL set in $PATH.

i am using cygwin not a machine with native unix. maybe its cygwin?
  #7 (permalink)  
Old 11-25-2008
radoulov's Avatar
radoulov radoulov is online now Forum Staff  
addict
  
 

Join Date: Jan 2007
Location: Варна, България / Milano, Italia
Posts: 2,897
Quote:
Originally Posted by npatwardhan View Post
i get a bash:more: command not found error.

when i did which more it looked in the PATH variable. its strange that there is not $SHELL set in $PATH.

i am using cygwin not a machine with native unix. maybe its cygwin?
Yes,
you have to select the more port during the installation process (it's not selected by default). You can also install it afterward by running the setup.exe again.
Closed Thread

Bookmarks

Tags
shell script, shell scripting, unix scripting, unix scripting basics

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:41 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0