Results 1 to 5 of 5
What is the command I need to use a command's output to a editor? I thought it would be something like:
ls -l > gedit or ls -l | gedit
...
- 02-20-2009 #1
[SOLVED] Command for output to vi or gedit
What is the command I need to use a command's output to a editor? I thought it would be something like:
ls -l > gedit or ls -l | gedit
rpm -Va > vi
- 02-20-2009 #2Just Joined!
- Join Date
- Feb 2009
- Location
- USA
- Posts
- 21
the correct command is,
Your commands will work also but the filenames are gedit and vi.Code:ls -l > filename rpm -Va > filename
- 02-20-2009 #3
You kinda answered my question. What I am really trying to do is call the command such as ls -l and then open up vi or gedit as well as saving the filename. So I thought this might work but it didn't:
ls -l > vi output.txt
- 02-20-2009 #4Just Joined!
- Join Date
- Feb 2009
- Location
- USA
- Posts
- 21
simplest way to dao that would be
Code:ls -l > filename && vi filename
- 02-22-2009 #5


