LinuxQuestions.org
Review your favorite Linux distribution.
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
 
LinkBack Search this Thread
Old 11-15-2008, 08:33 AM   #1
mythcat
Member
 
Registered: Dec 2007
Location: Bucharest
Distribution: Debian;Fedora
Posts: 58

Rep: Reputation: 15
bash: How i use locate output


I need to use the output of
Code:
locate
.
Basically, i need to open the file when i locate with nano.

Example
Code:
 locate vlcrc 
/home/Cat/.vlc/vlcrc
How make this working ?
xargs working with gedit but not working with nano?
Code:
locate vlcrc | xargs nano 
Am recepţionat SIGHUP sau SIGTERM
[Cat@localhost ~]$ locate vlcrc | xargs gedit
Thank you !

Last edited by mythcat; 11-15-2008 at 08:38 AM.
 
Old 11-15-2008, 11:35 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,370

Rep: Reputation: Disabled
nano `locate vlcrc`?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
bash:locate:command not found Jane2008 Linux - Newbie 4 10-30-2008 12:03 PM
cpan> locate -u Unknown shell command 'locate -u'. Type ? for help. sharad2005 Linux From Scratch 1 08-04-2006 12:40 AM
Unable to locate in bash anjanesh Linux - General 4 01-30-2006 10:46 PM
Bash output to file stryka Programming 6 12-20-2005 07:21 AM
Problems with 'locate' in bash Ariox Slackware 16 08-24-2005 11:53 PM


All times are GMT -5. The time now is 03:02 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration