04-02-2009
Quote:
Originally Posted by
siquadri
Try this:
for title in $(<top10song.tm2)
do
title=$(echo $title | tr '[A-Z' '[a-z]')
find /mnt/music -iname "*$title*" >> top10.lst
done
Try this:
for title in $(<top10song.tm2)
do
"title"=$(echo "$title" | tr '[A-Z' '[a-z]')
find /mnt/music -iname "*$title*" >> top10.lst
done
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I need to split a file based on certain context inside the file. Is there a unix command that can do this? I have looked into split and csplit but it does not seem like those would work because I need to split this file based on certain text. The file has multiple records and I need to split this... (1 Reply)
Discussion started by: matrix1067
1 Replies
2. Shell Programming and Scripting
I have been working on a script to list all the name's of a subfolder in a text file then edit that text file and then delete the subfolder base on the edited text file so far I have been able to do every thing I just talked about but can't figure out how to delete the subfolers base on a text file... (8 Replies)
Discussion started by: bone11409
8 Replies
3. Shell Programming and Scripting
Hi All,
I am very new to UNIX and I have tried this for a longtime now and unable to crack it....
There is a file that is continuously updating. I need to search for the string and find the date @ which it updated every day.....
eg:
String is "work started"
The log entry is as below:
... (1 Reply)
Discussion started by: Nithz
1 Replies
4. Shell Programming and Scripting
Hello,
I have a file ff.txt that looks as follows
*ABNA.txt
356
24
36
112
*AC24.txt
457
458
321
2
ABNA.txt and AC24.txt are the files in the folder named foo1. Based on the numbers in the ff.txt file, I want to extract the lines from the corresponding files in the foo1 folder and... (2 Replies)
Discussion started by: mohamad
2 Replies
5. Shell Programming and Scripting
Hello, I have a text file "file.list" with the contents below.
file1
filename1
file2
filename2
file3
filename3
file1, file2 and file3 are files existing in the same directory as the text file file.list.
I want to rename file1 to filename1, file2 to filename2, as show in the text... (1 Reply)
Discussion started by: james2009
1 Replies
6. Shell Programming and Scripting
I am trying to use awk skip each line with a ## or # and check each line after for STB= and if that value in greater than or = to 0.8, then at the end of line the text "STRAND BIAS" is written in else "GOOD".
So in the file of 4 entries attached.
awk tried:
awk NR > "##"' "#" -F"STB="... (6 Replies)
Discussion started by: cmccabe
6 Replies
7. Shell Programming and Scripting
I want to do FTP an Huge XML file to mainframe server using AIX server
Since my file size is huge, i want to split the XML file based on a delimiter , the record delimiter should be set after every 27000 bytes of data
and then do the ftp
This is done becos the data send to the mainframe must... (1 Reply)
Discussion started by: vishwanath001
1 Replies
8. UNIX for Beginners Questions & Answers
Hello!
New here although not completely new to Unix.
I wonder how I could rename files based on the data found in a simple textfile.
It goes like this:
I have 4 files
1 ldfgkkfjslkdfjsldkfjsf.wav
2 nndsdflksdjf.wav
3 sdflksjdf jjsdflsdfl.wav
4 dkadsdddd.wav
Textfile.txt looks like... (14 Replies)
Discussion started by: Oortone
14 Replies
9. Shell Programming and Scripting
Hi All,
In the file names we have dates.
Based on the file format given by the user,
if any file is not existed for a particular date with in a given interval we should consider that file is missing.
I have the below files in the directory /bin/daily/voda_files.
... (9 Replies)
Discussion started by: nalu
9 Replies
10. Shell Programming and Scripting
I am trying to mv each of the .vcf files in the variants folder to the folder in /home/cmccabe/f2 that the .vcf id is found in file. $2 in file will always have the id of a .vcf in the variants folder. The line in blue staring with R_2019 in file up to the -v5.6 will always be an exact match to a... (4 Replies)
Discussion started by: cmccabe
4 Replies
LEARN ABOUT DEBIAN
ticker
NAME(1) General Commands Manual NAME(1)
NAME
ticker - scroll messages across the screen
SYNOPSIS
ticker [options] [message]
DESCRIPTION
ticker is a program that continually scrolls a given message across the screen. There is also an interface to allow other programs to
change the message.
KEYS
+, [up arrow]
Increase scroll speed.
-, [down arrw]
Decrease scroll speed.
[space]
Pause. Press any key to unpause.
OPTIONS
-h, --help
Show summary of options.
-u, --upper
Scroll text on the top line of the screen. (Default)
-l, --lower
Scroll text on the bottom line of the screen.
-fcolor, --foreground=color
Use the specified color as the forground color of the text that is scrolled. The colors that may be used are:
black gray
red brightred
green brightgreen
brown yellow
blue brightblue
magenta brightmagenta
cyan brightcyan
lightgray white
-bcolor, --background=color
Use the specified color as the background color of the text that is scrolled. On most terminals, the background color can only be
one of the colors listed in the first column above.
-dsecs, --delay=secs
Number of seconds delay between updates of the display. This controls how fast the text scrolls. You may use decimals to specify
faster scroll speeds. The default delay is 1 second; I find 0.1 more pleasing.
-snum, --sysv=num
Read messages to display from the sysv shared memory segment with an id of num. This is only for use by other programs that need to
be able to change the text ticker displays.
-Snum, --size=num
Size of the shared memory segment to read, when using shared memory communication with another program. Default is 80 characters.
-csecs, --check=secs
Minimum time between checks of the shared memory segment for a new message. Default is every second. It may in fact check consider-
ably less often, as it only checks for a new message once per time that the current message scrolls around the screen.
message
The message to scroll. Required unless -s is used, in which case it is optional.
NOTES
To use the other 23 or so lines of your screen for something useful while the ticker is running, you might want to use splitvt(1)
AUTHOR
Joey Hess <joey@kitenet.net>
NAME(1)