Sponsored Content
Full Discussion: prefixing filenames
Top Forums Shell Programming and Scripting prefixing filenames Post 302146322 by ravi raj kumar on Tuesday 20th of November 2007 02:41:47 AM
Old 11-20-2007
prefixing filenames

Hi,Smilie
I have a list of files in a directory.I need to store them in a file with the prefix of @ by using a command..
ex:@p_po.plb
@p_ebiz_roster_data.plb

any idea pls.
cheers
RRK
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

spaces in filenames

I have a problem with the script below #!/bin/sh for vo in `find -maxdepth 1 -type f -regex "^\./*$"` do ls -l "$vo" some other commands done It works fine until `find ...` returns files with spaces. I've tryed to change IFS but haven't succeed Any solutions? (4 Replies)
Discussion started by: Hitori
4 Replies

2. UNIX for Dummies Questions & Answers

Addition with the prefixing zeros included

Hi I need to do an add function but it should include the prefixed zeros For Example i=00123 j=`expr $i + 1` The output it shows is 124 but I want the output to be 00124 Could any one help me finding out how to do this Thanks (16 Replies)
Discussion started by: sivasenthil_k
16 Replies

3. Shell Programming and Scripting

Patterns in Filenames

Hi, To start, I am using a bash shell on a G4 powerbook running Leopard. I am attempting to write a shell script that will automate the processing of satellite imagery. All the filenames are of the following construction: A2008196000500.L2 where A indicates the sensor, the next four... (6 Replies)
Discussion started by: msb65
6 Replies

4. Shell Programming and Scripting

CSV formatting with prefixing, appending and padding field

Hi I have a very large csv file with some hundreds of thousands of rows of data. The data is in the following format: Up to four alpha numeric characters for the first word. This is either set as 2 characters followed by 2 spaces, or as a single 4character word. This is then followed by an 8... (7 Replies)
Discussion started by: meself
7 Replies

5. Shell Programming and Scripting

matching a pattern in a file & prefixing a word

Hi, In my shell script i have to match a patten in a file , if found i have to prefix the entair line by a "word" eg. pattern = "aaa" prefix= #123 file: bbbb xxx zzzz aaaa qqqq kkkk outPut file: bbbb xxx ... (5 Replies)
Discussion started by: shivarajM
5 Replies

6. Programming

Unicode filenames in C++?

I'm trying to figure out how to support Unicode or atleast an unsigned char in the d_name of struct dirent The problem i'm facing is that I'm checking file names for special characters and obviously the "char d_name" doesn't like it. I'm looping through the directory and getting the file... (3 Replies)
Discussion started by: james2432
3 Replies

7. Shell Programming and Scripting

Manipulating Filenames

Hi Folks, I'm looking for some ideas on how to change some file names. I'm pretty sure I need to use sed or awk but they still escape me. The files I have are like: VOD0615 NEW Blades R77307.pdf or VOD0615_NEW_Blades_R77307.pdf and what I want after processing is: R77307 NEW Blades.pdf ... (5 Replies)
Discussion started by: imonkey
5 Replies

8. AIX

filemon with no filenames...

i excuted filemon with filemon -u -o /tmp/filemon.out -O all;sleep 60; trcstop. everything is ok, but i only get PID for filenames in Most Active Files. is there any different flags i need to use to get filenames? Code tags please, thanks. (3 Replies)
Discussion started by: curtis911
3 Replies

9. Shell Programming and Scripting

Prefixing test case methods with letter 'test'

Hi, I have a Python unit test cases source code file which contains more than a hundred test case methods. In that, some of the test case methods already have prefix 'test' where as some of them do not have. Now, I need to add the string 'test' (case-sensitive) as a prefix to those of the... (5 Replies)
Discussion started by: royalibrahim
5 Replies

10. Slackware

cp does not like filenames with accents?

Hi: mkisofs -graft-points -rational-rock -joliet -joliet-long -full-iso9660-filenames -iso-level 2 -o /tmp/image.iso STORE1/=/almacen/strauss In /almacen/strauss there are filenames containing not only spaces but accented characters as well. I burned the image to DVD, with the result that all... (2 Replies)
Discussion started by: stf92
2 Replies
FAPG(1) 							   User Manuals 							   FAPG(1)

NAME
fapg - Fast Audio Playlist Generator SYNOPSIS
fapg [ options ] /path/to/mp3/dir1 [ /path/to/mp3/dir2 ... ] DESCRIPTION
fapg is a tool to generate list of audio files (Wav, MP2, MP3, Ogg, etc) in various formats (M3U, PLS, XSPF, HTML, RSS, etc). It is very useful if you have a large amount of audio files and you want to quickly and frequently build a playlist. It is coded in C to be as fast as possible, and does not use any specific audio library (like ID3Lib). This allow you to deploy it faster and easier, and to have better performances since the less informations are loaded. On the other hand, this tool is not (yet) compatible with all the known formats. OPTIONS
-b|--backslash Replace the '/' with '' in Unix path. -d|--debug Display useful messages if the program fails ;) -f|--format=m3u|pls|xspf|html|rss|pla|txx Choose which format of playlist you want to generate (default is m3u). -g|--genre=#:#:... Choose which genres (numerical values only) will be included in the generated playlist (default is all). -n|--nohardlink Avoid to parse twice the files because of hardlinks. -o|--output=/path/to/file.m3u Choose the name of the playlist file to generate (default behavior is to display on standard output). -p|--prefix=/the/prefix Replace the Unix path with another string (useful to give a Samba path for example). -r|--recursive Recursively read the subdirectories. -w|--windows Replace all Unix characters with Windows characters. -x|--exclude=#:#:... Choose which genres (numerical values only) will be excluded in the generated playlist (default is none). -c|--command=<intern|...> External binary or script that produces additional fields for RSS feeds (slow). -s|--stdin Read filenames and/or directories from standard input instead of command line. EXAMPLES
Generate a PLS playlist for an album: fapg --format=pls --output=~/path/to/album/list.pls ~/path/to/album You have a file server using Samba which shares a large amount of audio files for Windows powered computers using Winamp. The directory on the server containing the files is /samba/mp3 and is visible on the Windows network as \servermp3 : cd /samba/mp3 && fapg --backslash --output=/samba/mp3/list.m3u --prefix='\servermp3' --recursive --windows ./ An HTML playlist for an album: fapg --output=fapg.html ~/path/to/album A playlist that contains all your classical tracks may receive the genres to include (or exclude) in one or multiple portions fapg --genre=32:105 --genre=106:104:103 /path/to/all/music Generate a podcasting XML file using an external program rss.sh to generate a detailed description: fapg --output=dir.xml -f rss -c /usr/local/bin/rss.sh -r --prefix=http://thisserver/basedir path/to/mp3 Generate a playlist that will work on a Sansa e200 series MP3 player: fapg -f pla -o /path/to/playlist.pla /path/to/all/music if command starts with intern the build-in description (Author,Title,Link) is generated. Please note that in all given directories ( and in ...basedir/xml ) files called podcast.jpg are referenced. Many header fields are set to defaults using environment variables like LOG- NAME or LANG. AUTHOR
Antoine Jacquet <royale@zerezo.com>, http://royale.zerezo.com/fapg/. Manpage by Thomas Kappler <thomas.kappler@stud.uni-karlsruhe.de>. Linux JANUARY 2007 FAPG(1)
All times are GMT -4. The time now is 01:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy