I'm trying to get the names of files from a log file, without the path and special characters.
I have a file that contains lines like this:
I would like to create a file from this that contains only the file names like this:
The path is usually the same but the file name may vary only the extension and the beginning of the name is the same.
For the moment I'm using cut but that is not an elegant solution and if the file names aren't the same I would always have to adjust the script.
Thanks in advance.
Last edited by Franklin52; 08-27-2012 at 08:16 AM..
Reason: Please use code tags for data and code samples
Hi,:cool:
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 (2 Replies)
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)
Hi
I hope someone will be able to resolve this little teaser!
I am running a script
for file in `ls directory`
do
echo "$file"
...other code here....
done
this works fine unless we receive a file with a name which has a space in it
ie
"filena me"
(I know its not good... (8 Replies)
How can I loose a part of the filename
I want to drop the “_<Number>.sql”
Below I have a listing of file names in a file
Eg :
CREDIT_DEL_033333.sql I want it to be CREDIT_DEL
ATM_DEBIT_CARD_0999999.sql I want it to be ... (3 Replies)
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)
I have 7 files with 7 different names coming into a specified folder on weekly basis, i need to pick a file one after another and load into oracle table using sql loader. I am using ksh to do this. So in the process if the file has error records and if sql loader fails to load into oracle tables,... (0 Replies)
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)
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)
Hi,
Its been a long time since I've done any shell scripting and I need some help here. Thanks in advance...
I need this as a bourne or csh script running under SCO.
In a folder I have a list of Backup files named with "TarBackup plus a date and time component suffix" like this;
... (2 Replies)
Hello Unix experts:
I have dir where few files are there, i want to sort these files and write the output to some other file but i need filenames with filepath too
eg:
i have filenames like
010020001_S-FOR-Sort-SYEXC_20171218_094256_0004.txt
so i want to sort my files on first 5 fields of... (2 Replies)
Discussion started by: gnnsprapa
2 Replies
LEARN ABOUT DEBIAN
mp3wrap
MP3WRAP(1) General Commands Manual MP3WRAP(1)NAME
mp3wrap -- Utility for mp3 wrapping
SYNOPSIS
mp3wrap [options] OUTPUTFILE f1.mp3 f2.mp3 [f3.mp3]...
DESCRIPTION
Mp3Wrap is a free command-line utility, which wraps two or more mp3 files in one large playable file, without losing filename and ID3
informations. It's useful to make large files easy to download on internet and then easy to split again in few seconds. You can split orig-
inal files using mp3splt: http://mp3splt.sourceforge.net
Mp3Wrap will create a file named: OUTPUTFILE_MP3WRAP.mp3. It's important you don't remove the MP3WRAP string, because this will tell the
split program Mp3Splt that the file is wrapped and can be splitted just with -w option. There is also the possibility to specify a custom
extension to created file (such as "OUTPUTFILE - MP3WRAP - wrapped by me.mp3"). This can be done using config file (see below), just adding
the line "EXT=my ext.mp3" into it. Note that your custom extension must contain MP3WRAP string anywhere, otherwise program will add it by
itself.
Mp3Wrap will also add to the file a ID3v2 containing informations on how to split the file; you can change Title and Album tags but PLEASE
DO NOT REMOVE THE COMMENT.
OPTIONS -a Add specified files to an existing Mp3Wrap file. Files are appended and the index is updated.
-l List all files wrapped into a Mp3Wrap file. Doesn't extract anything
-v Verbose mode. Mp3Wrap will display additional informations on process and, when using list option (-l) it will show many extra
infos on wrapped files.
CONFIGURATION FILE
For Linux version valid configuration files are:
~/.mp3wrap (in home directory)
.mp3wrap (in the dir you are in that moment).
For WIN32 version:
PROG_DIR/mp3wrap.ini (dir where mp3wrap.exe is)
mp3wrap.ini (in the dir you are in that moment).
FILE FORMAT
The file consists of key-value pairs in the form
KEY=value
where key contains no whitespace and no equal signs. value will be all of the text after the equal sign until (but not including) the end-
ing newline. Beware of extra spaces at the end of the line! They will probably be interpreted as part of the option value.
Valid option keys are:
EXT The extension mp3wrap will append to created files.
Here is an example:
EXT=_MP3WRAP_wrapped by me.mp3
EXAMPLES
mp3wrap album.mp3 file1.mp3 file2.mp3 file3.mp3 file4.mp3
mp3wrap -v album.mp3 file*.mp3
mp3wrap -a album.mp3 file5.mp3 file6.mp3
mp3wrap -l album.mp3
mp3wrap -lv album.mp3
BUGS
Report any bugs you find to Author (see below). Advices and info requests are welcome.
SEE ALSO mp3splt(1)AUTHOR
Matteo Trotta <mtrotta@users.sourceforge.net>.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License. This can be found
as COPYING in mp3wrap directory.
MP3WRAP(1)