Search Results

Search: Posts Made By: DJ Charlie
5,654
Posted By DJ Charlie
Okay, an update: I've got it finding 7 out...
Okay, an update:

I've got it finding 7 out of 10 files now. The other 3? Misspellings in the title.

Here's the code so far:

#!/bin/bash

mkdir /usr/local/autodj/tmp/10request
cd...
5,654
Posted By DJ Charlie
typeset: -u: invalid option typeset: usage:...
typeset: -u: invalid option
typeset: usage: typeset [-afFirtx] [-p] name[=value] ...
5,654
Posted By DJ Charlie
Echoing the $title shows the full line (song...
Echoing the $title shows the full line (song name), not an individual word.

I'm going to move the tr line out of the loop, to see if that helps.
5,654
Posted By DJ Charlie
./requested.sh: command substitution: line 23:...
./requested.sh: command substitution: line 23: unexpected EOF while looking for matching `''
Line 23: title="`echo $title|tr '[A-Z]' '[a-z]`"
5,654
Posted By DJ Charlie
Sorry, it's not working here. As I said in the...
Sorry, it's not working here. As I said in the first post, it works perfectly from the command line (aside from returning more than 1 match), but in the script, it runs find on each word, instead of...
5,654
Posted By DJ Charlie
No joy with either of those. It's still splitting...
No joy with either of those. It's still splitting each line into words, and running find on each word individually, which results in a few hundred matches each.
5,654
Posted By DJ Charlie
Well, partial success. Now it seems the...
Well, partial success.

Now it seems the trouble is that when the search string contains more than one word (like zombie zoo from the example file), it searches separately on each word. And to make...
5,654
Posted By DJ Charlie
Bash snippet to find files based on a text file?
Evening all. I'm having a terrible time with a script I've been working on for a few days now...

Say I have a text file named top10song.tm2, with the following in it:


kernkraft 400
Imagine...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 11:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy