LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2013, 02:47 AM   #1
sandeep117
LQ Newbie
 
Registered: Nov 2013
Location: India
Distribution: ubuntu 13.04
Posts: 4

Rep: Reputation: Disabled
how to copy commands from /usr to a text document


Kindly help.

How to copy commands from /usr to a text document.
 
Old 11-16-2013, 03:03 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Hi and welcome to LQ.

Have a look at the 'ls' command and redirections in bash
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO-3.html
 
Old 11-16-2013, 03:18 AM   #3
sandeep117
LQ Newbie
 
Registered: Nov 2013
Location: India
Distribution: ubuntu 13.04
Posts: 4

Original Poster
Rep: Reputation: Disabled
thanks for prompt reply
i saw the link,however how can i create the same thing with a script ?
 
Old 11-16-2013, 03:21 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Quote:
Originally Posted by sandeep117 View Post
thanks for prompt reply
i saw the link,however how can i create the same thing with a script ?

Of course, you can.

http://tldp.org/LDP/Bash-Beginners-G...ect_02_01.html
 
Old 11-16-2013, 04:25 AM   #5
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191Reputation: 1191
Try the above and post your script if you're still stuck. Generally, we try to guide new users, not give them ready solutions so if you're still stuck, post what you've tried and you'll get some more guidance. If you've managed to solve the problem, make sure to mark the thread as solved in the thread tools.
 
  


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
How do I generate a new text file for each line of text in a document? dio Linux - Newbie 6 06-05-2012 03:31 PM
How to copy text from vmware from linux text terminal to word document in windows? meandsushil Linux - Newbie 40 01-12-2011 07:06 AM
How to copy command line commands into a text file... visitnag Linux - Newbie 6 04-26-2009 05:11 AM
Which light text editor can copy text from file and paste in browser? davidas Linux - Software 9 03-06-2006 12:28 PM
all commands in form of some document dineshjk Linux - Newbie 2 07-05-2004 06:01 PM


All times are GMT -5. The time now is 03:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration