12-11-2013
Please show us what format you want to use in the output file.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, all:
I would like to search all files under "./" and its subfolders recursively to find out
those files contain both word "A" and word "B", and list the filenames finally.
How to realize that?
Cheers
JIA (18 Replies)
Discussion started by: jiapei100
18 Replies
2. Shell Programming and Scripting
Hello,
I have a complex problem. I have a file in which words have been joined together:
Theboy ranslowly
I want to be able to correctly split the words using a lookup file in which all the words occur:
the
boy
ran
slowly
slow
put
child
ly
The lookup file which is meant for look up... (21 Replies)
Discussion started by: gimley
21 Replies
3. Shell Programming and Scripting
Hey all,
I'm doing a project currently and want to index words in a webpage.
So there would be a file with webpage content and a file with list of words, I want an output file with true and false that would show which word exists in the webpage.
example:
Webpage content data.html
... (2 Replies)
Discussion started by: Johanni
2 Replies
4. Shell Programming and Scripting
Hi All,
I need help to know the exact command when I grep large list of files. Either using ls or find command. However I do not want to find in the subdirectories as the number of subdirectories are not fixed. How do I achieve that.
I want something like this:
find ./ -name "MYFILE*.txt"... (2 Replies)
Discussion started by: angshuman
2 Replies
5. UNIX for Dummies Questions & Answers
Hi!
I was trying to grep all the words in a wordlist, (twl), with no vowels. I had a hard time figuring out how to do it, but I finally lit on the -v flag. Here's my question:
Why does this work:
grep -v '' twl
But this doesn't:
grep '' twl
In the second example, we're asking for lines... (6 Replies)
Discussion started by: sudon't
6 Replies
6. UNIX Desktop Questions & Answers
I have an application desigend in PHP and MySQl running on apache web server that I is running on a Amazon EC2 server Centos. I want to implement the master-master and master slave replication and high availability disaster recovery on this application database.
For this I have created two... (0 Replies)
Discussion started by: Palak Sharma
0 Replies
7. Shell Programming and Scripting
I am reworking a Marathi-English dictionary to be out on open-source. My dictionary has the Headword in Marathi, followed by its Part of Speech and subsequently by its English glosses as in the examples below;
अकरसणें v i To contract, shrink.
अकरा a Eleven.
अकराळ a Frightful, terrible.
विकराळ... (2 Replies)
Discussion started by: gimley
2 Replies
8. UNIX for Advanced & Expert Users
Being new to the forum, I tried finding a solution to find files containing 2 words not necessarily on the same line.
This thread
"List all file names that contain two specific words."
answered it in part, but I was looking for a more concise solution.
Here's a one-line suggestion... (8 Replies)
Discussion started by: Symbo53
8 Replies
9. Shell Programming and Scripting
Hello,
I have a dictionary which I am building for the Open Source Community. The data structure is as under
HEADWORD=PARTOFSPEECH=ENGLISH MEANING
as shown in the example below
अ=m=Prefix signifying negation.
अँहँ=ind=Interjection expressing disapprobation.
अं=int=An interjection... (2 Replies)
Discussion started by: gimley
2 Replies
10. Shell Programming and Scripting
Hello,
I have a list of words separated by spaces I am trying to delete from a text file, and I could not figure out what is the best way to do this.
what I tried (does not work) :
delete="password key number verify"
arr=($delete)
for i in arr
{
sed "s/\<${arr}\>]*//g" in.txt
}
>... (5 Replies)
Discussion started by: Hawk4520
5 Replies
LEARN ABOUT DEBIAN
bup-ls
bup-ls(1) General Commands Manual bup-ls(1)
NAME
bup-ls - list the contents of a bup repository
SYNOPSIS
bup ls [-s] [-a]
DESCRIPTION
bup ls lists files and directories in your bup repository using the same directory hierarchy as they would have with bup-fuse(1).
The top level directory contains the branch (corresponding to the -n option in bup save), the next level is the date of the backup, and
subsequent levels correspond to files in the backup.
When bup ls is asked to output on a tty, it formats its output in columns so that it can list as much as possible in as few lines as possi-
ble. However, when bup ls is asked to output to something other than a tty (say you pipe the output to another command, or you redirect it
to a file), it will output one file name per line. This makes the listing easier to parse with external tools.
Note that bup ls doesn't show hidden files by default and one needs to use the -a option to show them. Files are hidden when their name
begins with a dot. For example, on the topmost level, the special directories named .commit and .tag are hidden directories.
Once you have identified the file you want using bup ls, you can view its contents using bup join or git show.
OPTIONS
-s, --hash
show hash for each file/directory.
-a, --all
show hidden files.
EXAMPLE
bup ls /myserver/latest/etc/profile
bup ls -a /
SEE ALSO
bup-join(1), bup-fuse(1), bup-ftp(1), bup-save(1), git-show(1)
BUP
Part of the bup(1) suite.
AUTHORS
Avery Pennarun <apenwarr@gmail.com>.
Bup unknown- bup-ls(1)