05-28-2002
Thanks guys.
I ended uo doing a
set `file $myfile` and grabbing $2.
Learning something new everyday
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I know in php if you use the function filesize it will return the size of the file in bytes, but is there an easy way to get the size in MB.
Cheers (2 Replies)
Discussion started by: jmg5
2 Replies
2. UNIX for Dummies Questions & Answers
I saw some stuff in the search results on this - but nothing specific.....
I have a significant number of files (c. 300) which are output from a large process that I run. These are compared with a 'baselined' set of files - so I can quickly see if there are differences based on the sizes of the... (2 Replies)
Discussion started by: peter.herlihy
2 Replies
3. Shell Programming and Scripting
Hello everybody it's me again.
I have a procces that is writing in a 'file1' automatically but i want to truncate 'file1' to a filesize 'x' that mean if the 'file1' size is 'x' i want to delete the first lines while the last lines are being writed, that have sence?
in the process are an... (1 Reply)
Discussion started by: Lestat
1 Replies
4. HP-UX
Dear sir
My hp-ux OS version is 11i (11.23) , and Oracle DB is 9i (9.2.0.6)
the problem that I can't create any file (DB datafile , export Dump file , Rman backup pices.... etc) under the OS biger than 2 GB
and the csh % limit check is
%limit
cputime unlimited
filesize ... (4 Replies)
Discussion started by: ae_nassar
4 Replies
5. UNIX for Dummies Questions & Answers
Hey guys.
What I need to do is this:
I need to find files that have a certain filesize (for this case a file size of 0 (zero) )
When I find this file with a filesize of zero I need to echo a statement that tells the user to delete it and not to delete it if the filesize is greater than... (3 Replies)
Discussion started by: ndoggy020
3 Replies
6. Shell Programming and Scripting
I want to know if there is any unix command to view the size of the file?
eg.
i have a directory letter
in this i have file a,b,c,d,e.
i just want to know the size of file d and not any other. (3 Replies)
Discussion started by: infyanurag
3 Replies
7. Shell Programming and Scripting
Hello,
I have a script that should store file size in a variable $filesize.
I don't know what is the best way to do it.
I tried
ls -lt myfile.txt | sed something >$filesize
but I don't know how to use sed to get filesize. I know that the owner of the file is root and then we have some... (6 Replies)
Discussion started by: pppswing
6 Replies
8. Shell Programming and Scripting
I am having problems with finding the filesize with this in my script:
filesize=`ls -l | awk '$5=0'`
if ; then
ls -l | awk '{print $9 " " $5}'
if ; then
echo "Would you like to delete this file? (y/n)"
if yes do this
elif no do this
fi
fi
else... (7 Replies)
Discussion started by: akeenabawa
7 Replies
9. AIX
Hi,
Just wondered what command you would use to list all the files on Aix by filesize?
I've tried a few but none of which seem to do the trick!
Currently running du -m -a . | sort -rn | more as root
Thanks,
Matt. (1 Reply)
Discussion started by: elmesy
1 Replies
10. Shell Programming and Scripting
Hi,
I want to check file size in unix, based on file size I am going to execute appropriate command.
I tried below, but getting the error.
System details –
Machine hardware: sun4u
OS version: 5.9
if ( -s $f1 ) then
echo "filename exists and is > 0 bytes"
else
echo "filename... (7 Replies)
Discussion started by: rahulbahulekar
7 Replies
LEARN ABOUT DEBIAN
tv_grab_no_gfeed
TV_GRAB_NO_GFEED(1p) User Contributed Perl Documentation TV_GRAB_NO_GFEED(1p)
NAME
tv_grab_no_gfeed - Grab TV listings for Norway.
SYNOPSIS
tv_grab_no_gfeed --help
tv_grab_no_gfeed --configure [--config-file FILE] [--gui OPTION]
tv_grab_no_gfeed [--config-file FILE]
[--days N] [--offset N]
[--output FILE] [--quiet] [--debug]
tv_grab_no_gfeed --list-channels [--config-file FILE]
[--output FILE] [--quiet] [--debug]
DESCRIPTION
Output TV and listings in XMLTV format for many stations available in Norway.
First you must run tv_grab_no_gfeed --configure to choose which stations you want to receive.
Then running tv_grab_no_gfeed with no arguments will get a listings for the stations you chose for five days including today.
OPTIONS
--configure Prompt for which stations to download and write the configuration file.
--config-file FILE Set the name of the configuration file, the default is ~/.xmltv/tv_grab_no_gfeed.conf. This is the file written by
--configure and read when grabbing.
--gui OPTION Use this option to enable a graphical interface to be used. OPTION may be 'Tk', or left blank for the best available choice.
Additional allowed values of OPTION are 'Term' for normal terminal output (default) and 'TermNoProgressBar' to disable the use of
Term::ProgressBar.
--output FILE When grabbing, write output to FILE rather than standard output.
--days N When grabbing, grab N days rather than 5.
--offset N Start grabbing at today + N days. N may be negative.
--quiet Suppress the progress-bar normally shown on standard error.
--debug Provide more information on progress to stderr to help in debugging.
--list-channels Output a list of all channels that data is available
for. The list is in xmltv-format.
--version Show the version of the grabber.
--help Print a help message and exit.
ERROR HANDLING
If the grabber fails to download data for some channel on a specific day, it will print an errormessage to STDERR and then continue with
the other channels and days. The grabber will exit with a status code of 1 to indicate that the data is incomplete.
ENVIRONMENT VARIABLES
The environment variable HOME can be set to change where configuration files are stored. All configuration is stored in $HOME/.xmltv/. On
Windows, it might be necessary to set HOME to a path without spaces in it.
SUPPORTED CHANNELS
For information on supported channels, see http://data.epg.no/
AUTHOR
Mattias Holmlund, mattias -at- holmlund -dot- se. This documentation and parts of the code copied from tv_grab_uk by Ed Avis, ed -at-
membled -dot- com.
BUGS
perl v5.14.2 2012-06-30 TV_GRAB_NO_GFEED(1p)