08-28-2013
Sizeof a file from directory path in perl
Hai
how to find size of a file??
ex : /home/kiran/pdk/sample/calibre this is a path
In that I have to find size of a files in side a calibre(it is the folder) like .results or .summary
10 More Discussions You Might Find Interesting
1. Programming
Hi All,
is it possible to find out the size of an array of structures ( without using 'sizeof' operator). The condition is we have the array of structure instant but we are not aware of the elements inside the structure.
Can someone help me out?
Thanks in advance. (18 Replies)
Discussion started by: rvan
18 Replies
2. Shell Programming and Scripting
Hi
anyone can help how put the directory in array in perl.eg directory paths below:-
/home/user/
/home/admin/
/var/log/
IF path eq /home/user/ then the files moved to /data/user/
IF path eq /var/log/ then the files moved to /data/log/
Thanks (1 Reply)
Discussion started by: netxus
1 Replies
3. Shell Programming and Scripting
Hi
I need to copy last modified directory from path /users/bin to be copied to /tmp in a perl script ...somehow my script is not allowing me to do cd /users/bin.
i have tried
$dir = `find /users/bin -maxdepth 1 -type d -mtime 0 `
cp -R $dir /tmp/new
but it says missing destination... (1 Reply)
Discussion started by: shaveta
1 Replies
4. Shell Programming and Scripting
Hi,
I have a file abcd.txt which has contents in the form of full path file names i.e.
$home> vi abcd.txt
/a/b/c/r1.txt
/q/w/e/r2.txt
/z/x/c/r3.txt
Now I want to retrieve only the directory path name for each row
i.e
/a/b/c/
/q/w/e/
How to get the same through shell script?... (7 Replies)
Discussion started by: royzlife
7 Replies
5. Shell Programming and Scripting
Hello All,
Here is what I am trying to do and maybe you guys can point me in the right direction. I have a file that contains the following string(s):
WARNING: </d1/test/program1> did not find item1
WARNING: </d1/test/program1> item1 does not exist
WARNING: </d1/test/program2> item1 failed... (1 Reply)
Discussion started by: maxshop
1 Replies
6. UNIX for Dummies Questions & Answers
Hai
how can I assign directory path to a variable in perl
Thanks&Regards
kiran (2 Replies)
Discussion started by: kiran425
2 Replies
7. UNIX for Advanced & Expert Users
Hai
how can I assign directory path to a variable in perl
Thanks&Regards
kiran (3 Replies)
Discussion started by: kiran425
3 Replies
8. UNIX for Beginners Questions & Answers
I'm brand new to AIX and I looked up how to print this file and it was working but now I'm not able to do it all of a sudden. the file name is rom1.txt so this is what i wrote in the command line and I know I'm in the right directory. In bold is what I seem to be messing up with.
prod @ root... (3 Replies)
Discussion started by: Dark0Prince
3 Replies
9. UNIX for Beginners Questions & Answers
Hello,
I am creating a file with all the source folders included in my git branch, when i grep for the used source, i found source included as relative path instead of absolute path, how can convert relative path to absolute path without changing directory to that folder and using readlink -f ? ... (4 Replies)
Discussion started by: Sekhar419
4 Replies
10. UNIX for Beginners Questions & Answers
What is the difference ../directory path and ./directory path in ksh? (1 Reply)
Discussion started by: TestKing
1 Replies
LEARN ABOUT SUSE
ebook-meta
EBOOK-META(1) calibre EBOOK-META(1)
NAME
ebook-meta - part of calibre
SYNOPSIS
ebook-meta ebook_file [options]
DESCRIPTION
Read/Write metadata from/to ebook files.
Supported formats for reading metadata: azw, azw1, cbr, cbz, chm, epub, fb2, html, imp, lit, lrf, lrx, mobi, odt, oebzip, opf, pdb, pdf,
pml, pmlz, prc, rar, rb, rtf, tpz, txt, zip
Supported formats for writing metadata: azw, azw1, epub, lrf, mobi, pdb, pdf, prc, rtf, tpz
Different file types support different kinds of metadata. If you try to set some metadata on a file type that does not support it, the
metadata will be silently ignored.
Whenever you pass arguments to ebook-meta that have spaces in them, enclose the arguments in quotation marks.
OPTIONS
--version
show program's version number and exit
-h, --help
show this help message and exit
-t, --title
Set the title.
-a, --authors
Set the authors. Multiple authors should be separated by the & character. Author names should be in the order Firstname Lastname.
--title-sort
The version of the title to be used for sorting. If unspecified, and the title is specified, it will be auto-generated from the
title.
--author-sort
String to be used when sorting by author. If unspecified, and the author(s) are specified, it will be auto-generated from the
author(s).
--cover
Set the cover to the specified file.
-c, --comments
Set the ebook description.
-p, --publisher
Set the ebook publisher.
--category
Set the book category.
-s, --series
Set the series this ebook belongs to.
-i, --index
Set the index of the book in this series.
-r, --rating
Set the rating. Should be a number between 1 and 5.
--isbn Set the ISBN of the book.
--tags Set the tags for the book. Should be a comma separated list.
-k, --book-producer
Set the book producer.
-l, --language
Set the language.
-d, --date
Set the published date.
--get-cover
Get the cover from the ebook and save it at as the specified file.
--to-opf
Specify the name of an OPF file. The metadata will be written to the OPF file.
--from-opf
Read metadata from the specified OPF file and use it to set metadata in the ebook. Metadata specified on the command line will over-
ride metadata read from the OPF file
--lrf-bookid
Set the BookID in LRF files
SEE ALSO
The User Manual is available at http://calibre-ebook.com/user_manual
Created by Kovid Goyal <kovid@kovidgoyal.net>
ebook-meta (calibre 0.6.53) July 2010 EBOOK-META(1)