Go Back   DaemonForums > Miscellaneous > Programming

Programming C, bash, Python, Perl, PHP, Java, you name it.

Thread Tools Display Modes
  #1   (View Single Post)  
Old 2 Weeks Ago
jb_daefo jb_daefo is offline
Spam Deminer
Join Date: May 2008
Posts: 238
Thanked 5 Times in 5 Posts
Default [Never mind...] Out of time here; cannot seem to pipe to "locate"

[solved... for the most part. Q remains
but is irrelevant...]

cat file | xargs ...locate
tail -20 file | xargs ...locate
for i in $( tail -20 file | awk ...) ; do ....

All the pipes/oneliners which work here
for binaries other than locate, seem to
return no results with no 0, 1,
status message, etc, OR every file in the
entire filesytem.

Only asking here because I found and saved
multiple .htm which almost, but did not,
solve the problem ...

In about three hours I could probably craft a
.pl that worked, but it seems it should work at
the command line...

/edit/ found most of the files on backup. A one liner
restored them... if I figure correctly.

Just in case anyone knows anything.


Last edited by jb_daefo; 2 Weeks Ago at 03:10 AM. Reason: workaround
Reply With Quote

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Difference between"arp info overwritten" and " duplicate IP address " varag OpenBSD Security 1 6th April 2015 02:57 PM
How to replace "ectags" with "ctags"? fender0107401 OpenBSD Packages and Ports 5 16th April 2013 10:01 AM
Where should I put my config? "rc.conf" or "rc.conf.local"? fender0107401 OpenBSD General 2 2nd April 2012 02:53 AM
Fixed "xinit" after _7 _8, "how" here in case anyones' "X" breaks... using "nvidia" jb_daefo Guides 0 5th October 2009 09:31 PM
"Thanks" and "Edit Tags". diw Feedback and Suggestions 2 29th March 2009 12:06 AM

All times are GMT. The time now is 06:58 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick