01-09-2010
Is there a way I can trouble shoot this without actually making anything happen?
And also, can I use ">& logfile.txt" to pipe the output from the script to a logfile that I can see what is happening?
Thanks again for everyone's help so far.
I am testing with just one directory in the /home/music/ directory.
It is as follows "/home/music/B-52's, The/Cosmic Thing/B-52's, The - Rock Lobster.mp3"
I tried running it and this is what I got:
mv: cannot stat `B-52\'s, The.B-52\'s, The': No such file or directory
Am I doing something wrong?
Last edited by marcozd; 01-09-2010 at 04:58 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I need to truncate a large file without deleting and touching it again.
i tried the below commands but no use because of the huge file size
cat <<! > errors
and
echo > errors
Could someone please help.
Thanks,
Sateesh (1 Reply)
Discussion started by: kotasateesh
1 Replies
2. Shell Programming and Scripting
I have one file which first line is blank and second line has some data.
$cat filename
output:
30-MAY-07
I want to store 30-MAY-07 value in one variable.
for that I wrote
var="`head -2 filename`"
It will give that result but I want to truncate the first line which is blank.
plz help. (2 Replies)
Discussion started by: rinku
2 Replies
3. UNIX for Dummies Questions & Answers
I am trying to concatenate 2 files, but before concatenation, I would like to strip off the final character from the first file.
The final character is a form feed (ascii 012 / hex 0C) and there will be an unknown number of these characters in the file. It is only the very last one which I want... (1 Reply)
Discussion started by: Gwailo88
1 Replies
4. Shell Programming and Scripting
I have a xml file which contains image tag as follows:
<image><img src="wstc_0007_0007_0_img0001.jpg" width="351" height="450" alt="This is the cover page. Brazil • Japan • Korea • Mexico • Singapore • Spain" type="photograph" orient="portrait"/></image>
... (5 Replies)
Discussion started by: parshant_bvcoe
5 Replies
5. Shell Programming and Scripting
Hi all,
i have a file and i want that after 6th slash "/" in each line of the file the contents gets truncated.
Can anyone tell me how to do that !!
thanks in advance
One more thing how can i change the size of output buffer of console,
as i had very long output and its not... (2 Replies)
Discussion started by: glamo_2312
2 Replies
6. UNIX for Dummies Questions & Answers
Folder of e-mails in maildir format had been corrupted. Typical file name is 1246281161.6777.m21JH:2,S . The " :2,S prevents " copying to another device. How can I simply remove the last four characters? (2 Replies)
Discussion started by: steve900
2 Replies
7. Shell Programming and Scripting
how to recover the file in unix.
Thanks in advance.:wall: (1 Reply)
Discussion started by: krbala1985
1 Replies
8. UNIX for Dummies Questions & Answers
hi All,
how to recover the truncate file in unix.
Thanks!:wall: (2 Replies)
Discussion started by: krbala1985
2 Replies
9. Shell Programming and Scripting
hi,
I have an data from file where it has
20110904 234516 <<hdd-10#console|0c.57,passed,5,28,READ,0,20822392,8,5,4,0,40,0,-1,0,29909,25000,835,3.3,0,0,0,0,implied,0,0,2011/9/5-2:3:17,2011/9/5-2:3:47,X292_0F15,TAP ,NQ09,J40LTG\r\r\n
I want to remove characters till #console| i.e want... (1 Reply)
Discussion started by: asak
1 Replies
10. Shell Programming and Scripting
Hello:
I have a large file which contains lines like the following:
1/t123ab, &Xx:1:1234:12345:123456@ABCDEFG... at -$100.00%
/t is a tab, spaces are as indicated
the string "&Xx:1:1234:12345:123456$ABCDEFG..." has a slightly variable number of numbers and letters, but it always starts... (9 Replies)
Discussion started by: Tectona
9 Replies
LEARN ABOUT DEBIAN
dh_installdeb
DH_INSTALLDEB(1) Debhelper DH_INSTALLDEB(1)
NAME
dh_installdeb - install files into the DEBIAN directory
SYNOPSIS
dh_installdeb [debhelperoptions]
DESCRIPTION
dh_installdeb is a debhelper program that is responsible for installing files into the DEBIAN directories in package build directories with
the correct permissions.
FILES
package.postinst
package.preinst
package.postrm
package.prerm
These maintainer scripts are installed into the DEBIAN directory.
Inside the scripts, the token #DEBHELPER# is replaced with shell script snippets generated by other debhelper commands.
package.triggers
package.shlibs
These control files are installed into the DEBIAN directory.
package.conffiles
This control file will be installed into the DEBIAN directory.
In v3 compatibility mode and higher, all files in the etc/ directory in a package will automatically be flagged as conffiles by this
program, so there is no need to list them manually here.
package.maintscript
Lines in this file correspond to dpkg-maintscript-helper(1) commands and parameters. Any shell metacharacters will be escaped, so
arbitrary shell code cannot be inserted here. For example, a line such as "mv_conffile /etc/oldconffile /etc/newconffile" will insert
maintainer script snippets into all maintainer scripts sufficient to move that conffile.
A versioned Pre-Dependency on dpkg is needed to use dpkg-maintscript-helper(1). An appropriate Pre-Dependency is set in
${misc:Pre-Depends} ; you should make sure to put that token into an appropriate place in your debian/control file.
SEE ALSO
debhelper(7)
This program is a part of debhelper.
AUTHOR
Joey Hess <joeyh@debian.org>
9.20120909 2011-09-12 DH_INSTALLDEB(1)