Software :: Only Show Each Filename Once?

Apr 12, 2011

I've been googling for this, but can't find if grep can do this, or how to use a second command.

I need to find all the files recursively where a given word is found, but since it can be found more than once in each file, I'd like to only get the filename once, to keep things clear, eg. looking for "vfork":

Code:
grep -R vfork *
...
configure: is told about this with #include <vfork.h>, but some compilers
configure: (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
configure: clobbered by the vfork. */

View 4 Replies


ADVERTISEMENT

General :: Set A Pattern That Will Output A Filename Equal To The Original Filename In SoundConverter?

Jan 23, 2011

$ uname -a
Linux a 2.6.35.10-74.fc14.i686.PAE #1 SMP Thu Dec 23 16:10:47 UTC 2010 i686 i686 i386 GNU/Linux
$ lsb_release -a
LSB Version: :core-4.0-ia32:core-4.0-noarch

[Code].....

How can I set a pattern that will output a filename equal to the original filename? E.g.

something.mp3 → something.ogg

And why isn't this implemented in SoundConverter?

PS: {Filename} doesn't work.

View 1 Replies View Related

General :: Shell - What's The Difference Between Filename And ./filename

Apr 23, 2010

What is the difference between filename and ./filename? Under what circumstances is one preferred to the other?

View 5 Replies View Related

Server :: Split A Filename Into Its Filename And Extension?

Apr 6, 2010

I need to split a filename into its filename and extension, so I can append a datestamp to the filename. I'm using bash.

View 8 Replies View Related

CentOS 5 Hardware :: How To Compile Filename.c Into Filename.o

Nov 20, 2009

I've installed ethernet adapter, it is made in china from a manufacturer called FOX. The driver for that adapter is supported for sco linux kernel version 2.4.x and 2.5.x .However, I'm using Centos5 but the OS didn't recognize the adapter alone, so I'm trying to follo instructions on the driver on the attached CD.

The CD contains file named "SC92031.c", the instructions tell me to do the following "Compile the driver source files and it will generate sc92031.o"

View 8 Replies View Related

Software :: Difference Between <filename>.rpm And <filename>.src.rpm?

Nov 22, 2010

what is the difference between <filename>.rpm and <filename>.src.rpm?

View 2 Replies View Related

Programming :: Convert A Dynamic Library (filename.so) To A Static Library (filename.a)?

Nov 18, 2009

How can we convert a dynamic library (filename.so) to a static library (filename.a) using gnu gcc . Can we get a static library form a dynamic library . I saw a few post in which the conversion form a static library to a dynamic library is mentioned but, unfortunately, not the other way.

View 4 Replies View Related

General :: Evolution Does Not Show Content Of Inbox Or Sent But Does Show Other Folders

Apr 28, 2011

I configured it to use IMAP to access our exchange 2010 server front end on a LAN connection. Our webmail connection is segregated behind Forefront, so it was not connecting/authing that way. Even though smartphones have no problem. (sidenote, is there an activesync linux mail client ?)

I have many root folders and several folders underneath my inbox. total mailsize in inbox is 3.5 GB without subfolders. The sent is likewise as large. And is likewise empty.

Things I checked already:
View is all
Folder subscription is on and local copy is on

More info:
Thunderbird worky fine.
But thunderbird is missing calender
Tried adding lightening, but it won't add into thunderbird.
Will try finding a diff add on, or if anyone knows how to get lightening into thunderbird 3.1.8 on ubuntu 10 that would be great as well.

View 1 Replies View Related

Ubuntu :: Maverick Doesn't Show Sub-menus / Show That?

Oct 14, 2010

Anyway since I upgraded to Ubuntu 10.10 when I right-click on something and there is another menu in that menu, it doesn't show up for the first time!

for example if I want to create a an "Empty File", I'll right-click on desktop and when I want to go to "Create Document" menu, it doesn't show up! so I must click somewhere else and try again so for the second time it works!!

View 9 Replies View Related

General :: Get Substring Of Filename?

Oct 28, 2010

i have filename like the following

1_40_37573.dbf
1_41_37573.dbf
1_42_37573.dbf

[Code]....

actually i want to extract the substring between 2 underscores
e.g. in case of 1_40_37573.dbf i need 40 and in case of 1_101_37373.dbf i need 101 and so on

View 8 Replies View Related

General :: Create A .tgz With The Filename?

Apr 21, 2011

I have some school work that involves creating a script that creates a backup of my /home folder, everything goes well but the problem is with the filename.

I am supposed to create a .tgz with the filename : hostname-day-date-HH:MM:ss.tgz

The .tgz gets created with the correct filename but when I try to unpack it the filename can't be resolved, it's the : that mess things up.

View 2 Replies View Related

Ubuntu :: Tail -f <filename> Is Not Working

Jan 18, 2010

tail -f <filename> is not working as planned on my Ubuntu 9.10, it doesn't show the appended data.tail -F works, but it does not append the new line, it reopens the file with the message: "tail: <filename> has been replaced; following end of new file"

View 4 Replies View Related

Ubuntu :: Date Change Within A Filename?

Jul 8, 2011

I'm trying to change the date of the following text file from 1970 to 2011 (I have 500 text files to rename). Can Ubuntu do this natively or will I have to speak to the "Script Guru's"?

TG.ALISISPOASDLDSIASI-1970-2d938787212.txt

View 6 Replies View Related

Ubuntu :: How Does Filename Gets Mapped To Its Inode

Mar 7, 2010

How does a filename is mapped to its inode ??? If I want to make our own system call and use a filename as argument how can I get its inode ,if I want to use some of member of inode structure in code. Basically I want to get the fd of the file.

View 5 Replies View Related

Networking :: PXE-E53: No Boot Filename Received

Feb 10, 2010

I set up environment according to BareMetalProvisioningBestPractices document, I think everything should be ok. Now trying to plug in new virtual machine for PXE install Linux. But something is wrong, DHCP waits couple of seconds, and then I receive:

PXE-E53: No boot filename received
PXE-M0F: Exiting Intel PXE ROM.

I think, all services required are started.

dhcp.conf on boot/stage is:
#
# DHCP Server Configuration file.
# see /usr/share/doc/dhcp*/dhcpd.conf.sample
#

[Code].....

pxelinux.0 was taken from RHEL4, but I've got image and trying to boot RHEL5. Maybe there is something?

View 6 Replies View Related

General :: Can Source Filename Be Used In Makefile

May 7, 2010

in directory a_dir, have a file named a_file.i can type "source a_file" under directory a_dir and execute successfully.but if i write the command to a Makefile under directory b_dir, the "source" function can't be executed well. it will generate some error message like this:

./a_file: line 1: setenv: command not found
./a_file: line 2: setenv: command not found
./a_file: line 3: setenv: command not found
./a_file: line 5: setenv: command not found

View 3 Replies View Related

General :: Extract Last Number From Filename

May 27, 2010

I have to extract last number from filename.

ex- my file name is a10b8c1000

so i want to extract 1000 from it.

i tried using sed
sed 's/[a-z][0-9]*[a-z][0-9]*[a-z]//g' a10b8c1000

but sed looks for content inside file.

View 8 Replies View Related

General :: Remove A Part From A Filename?

Feb 25, 2011

I would like to remove a part from wiz_khalifa-black_&_yellow-(82_bpm).mp3
The part to be removed is -(*_bpm)

so that makes wiz_khalifa-black_&_yellow.mp3

Also a problem is that sometimes multiple "(" occur in a filename (wiz_khalifa-black_&_yellow-(remix)-(82_bpm)), so how can i only remove from the last "("

View 11 Replies View Related

General :: Replacing Part Of Filename?

Apr 25, 2010

I have just re transcoded a bunch of avi's. to tell the new ones from the old ones I put '[xvid]' at the end of all the new avi's. but now I have deleated the old avi's I want to remove the [xvid] part of the file name. This is what I have so far

Code:
#!/bin/bash
for name in *.avi
do
newname=`echo "$name" | tr -d [xvid]`

[Code]...

View 10 Replies View Related

Fedora :: Delete Directory With ??? Characters In Filename?

Jun 6, 2010

I have downloaded torrent from some chinese tracker. It has ???? and some other symbol charaters in directory name. How to delete that file and directory?

View 5 Replies View Related

General :: Rsync Directories By Path / Filename Only?

Aug 22, 2010

Is there a way for me to rsync two directories comparing only filenames (and not file size, date modified, or any other criteria)?

View 2 Replies View Related

Ubuntu :: The File Extension .pdf Appears In The Filename?

Apr 2, 2010

How to make sure that when I save a pdf file, the file extension .pdf appears in the filename? Its a silly little thing, but annoying. The file browser recognises it afterward as a pdf file though, it opens with document viewer ok.

View 9 Replies View Related

Ubuntu Networking :: Mount Share And See ?'s In Filename

Aug 17, 2010

I'm trying to mount a windows share (that mac users use) using:mount -t cifs //x.x.x.x/Graphics /mnt/graphics -o username=x,password=x,iocharset=utf8.It mounts ok for the most part, but where the mac users put bullets in front of their file names, ubuntu displays questions marks. I've tried this without the iocharset as well and same result when I execute ll -l.

View 1 Replies View Related

Ubuntu :: Can Change The Default Filename In Brasero

Oct 2, 2010

Brasero is a great application in general, but one thing has always annoyed me: When I rip a disc to an image file, it is always called "brasero.iso" by default. Is there some way I can configure Brasero to automatically use the disc's volume label as the *.iso filename? I'm tired of having to type a filename each time, or else go back later, figure out what it's an image of, and rename it in Nautilus.

View 1 Replies View Related

Ubuntu :: Sorting Files Based On Filename?

Nov 2, 2010

I'm currently trying to organize a media server so that things will be in some kind of logical order rather than the current setup of dumping everything of a certain content type into a single folder. However, the size and diversity of content within these disorganized folders precludes me doing things manually. Does anyone know of a program or script that could sort the files into folders based on part of a filename

View 7 Replies View Related

Ubuntu :: Cannot Delete File With Backslash In Filename

Feb 6, 2011

Ubuntu 10.04 Guest in VirtualBox

I'm trying to delete a file called

Code:
springlobby_config.h

I've tried:

Code:
rm -i *

which gives me:

Code:
rm: cannot remove `springlobby_config\.h': No such file or directory

Tried to rename it:

Code:
mv * abc

which gives me:

Code:
mv: cannot stat `springlobby_config\.h': No such file or directory

I don't think it's a permissions issue because usually the terminal would say permission denied, but perhaps I'm wrong.

View 9 Replies View Related

Ubuntu :: Nautilus Script - Copy Just The Filename

Feb 7, 2011

I have found a Nautilus script that is able to copy the path of a file(e.g. /home/#&*@^/name_of_file.jpg) & I do use it regularly but I would also like to have a Nautilus script that would copy just the filename, not the path. Is there any Nautilus script out there that could do that?

View 1 Replies View Related

Ubuntu :: Indexed Search For Files By Filename?

Jun 23, 2011

Is there really no way of having with a GUI an indexed file search by filename (not contents etc) which gives a detailed list? Great big icons as a "result" is no good to me, I want "details" that I can then click on to either open or copy etc. I tried the totally useless "Tracker" and Zeitgeist in my 11.04 is no better. There is a fantastic product in the win environment called everything.exe which does exactly what I want. I cannot be alone in this type of requirement. It has to have a GUI.

View 9 Replies View Related

General :: LS Hangs On Searching For Filename In Directory

Oct 19, 2010

I have a directory that has a large number of files, around 1.5 million at this point. If I go to the directory and type in "ls filename" for a filename that I know exists, ls just hangs. I have let it run for over 20 minutes and it never does anything. Up until yesterday the directory was working fine through samba serving up files, but now it doesn't return anything. How to proceed from here?

View 7 Replies View Related

General :: Basic Bash Filename Escaping ?

Nov 18, 2010

What I have done wrong with my escaping here:

Code:

The original filename is:

Code:

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved