10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi ,
Please help me out for the below problem -
I have 2 files in a directory -
$ ls -ltr
total 4
-rwx------+ 1 abc Domain Users 615 May 31 17:33 abc.txt
-rwx------+ 1 abc Domain Users 0 May 31 17:33 ll.sh
I want to write the filename of abc.txt along with the directory to the... (2 Replies)
Discussion started by: Pratik4891
2 Replies
2. UNIX for Beginners Questions & Answers
I have a factor program that runs and outputs to stdout all the prime numbers that are specified in the given paramters, in this case 30000000-31000000.
Command:
factor/factor 30000000-31000000
Sample output:
30999979 = 30999979
30999980 = 2^2 5 11 140909
30999981 = 3 10333327... (6 Replies)
Discussion started by: steezuschrist96
6 Replies
3. Shell Programming and Scripting
hi team,
i need a script for renaming a file with sequence number. script get a file from one directory'/home/billing/Cmm/sms/sms_tmp' append sequence no at the end of file name and move a file to other directory/home/billing/Cmm/sms/.
actual file is cdr201508271527 file after renaming ... (3 Replies)
Discussion started by: mfaizan40
3 Replies
4. Shell Programming and Scripting
Hi Power User,
I'm trying to compute this kind of text file format:
file1:
jakarta 100 150
jakarta 170 210
beijing 220 250
beijing 260 280
beijing 290 320
new_york 330 350
new_york 370 420
tokyo 430 470
tokyo 480 ... (2 Replies)
Discussion started by: anjas
2 Replies
5. Shell Programming and Scripting
Does anyone know how to use awk to act like grep from a particular line number to the end of file? I am using Solaris 10 and I don't have any GNU products installed.
Say I want to print all occurrences of red starting at line 3 to the end of file.
EXAMPLE FILE:
red
green
red
red... (1 Reply)
Discussion started by: thibodc
1 Replies
6. Shell Programming and Scripting
Hi there, I have a bunch of interface names like
e1000g0
nge1
dmfe3
I also have some that have longer (vlan tagged) names
like
e1000g123001
nge23003
e1000g999002
I need to determine whether the interface is one of the former or latter types and I would do that by seeing... (7 Replies)
Discussion started by: rethink
7 Replies
7. Shell Programming and Scripting
Hi Folks,
Using the Vi, how can I add a numbers at the end of the line.
For eg: I have the numbers in the file as:
58.125.33
22.58.68
25.144.225
114.25.38
I need to add .0/8 at the end of all the line. So, it should be like
58.125.33.0/8
22.58.68.0/8
25.144.225.0/8
114.25.38.0/8 (6 Replies)
Discussion started by: gsiva
6 Replies
8. Shell Programming and Scripting
Hi
I want to find whether the argument passed to my script ends in a number or not. Like, I want to find out if the argument is of the form: xyzwpq123 or just of the form xyzwpq.
Can someone please help me!?
Thanks (2 Replies)
Discussion started by: alirezan
2 Replies
9. Shell Programming and Scripting
Hi All
I have a script which has produced a list, I have used 'sed' to number my list, but i want to list at end of line with the first line starting at zero (0) and brackets round it
ie
My List i want
Hello (0)
this (1)
day (2)
can (3)
be (4)
sed '/./=' filename | sed '/./N; s/\n/) /'... (5 Replies)
Discussion started by: chassis
5 Replies
10. Shell Programming and Scripting
Hi Guys/Gals,
I have a log file that is updated once every few seconds and I am looking for a way to speed up one of my scripts.
Basically what I am trying to do is grep through a text file from start to finish once. Then each subsequent grep starts at the last line of the previous grep to... (4 Replies)
Discussion started by: Jerrad
4 Replies
TV_GRAB_FR(1p) User Contributed Perl Documentation TV_GRAB_FR(1p)
NAME
tv_grab_fr - Grab TV listings for France.
SYNOPSIS
To configure:
tv_grab_fr --configure [--config-file FILE] [--gui OPTION]
To configure AUTRES CHAINES list:
tv_grab_fr --configure-more-channels
To grab listings:
tv_grab_fr [--config-file FILE] [--output FILE] [--days N]
[--offset N] [--quiet] [--debug]
To list available channels:
tv_grab_fr --list-channels
To show capabilities:
tv_grab_fr --capabilities
To show version:
tv_grab_fr --version
Help:
tv_grab_fr --help
DESCRIPTION
Output TV listings for several channels available in France (Hertzian, Cable/satellite, Canal+ Sat, TPS). The data comes from
telepoche.guidetele.com. The default is to grab as many days as possible (currently 9) from the current day onwards.
--configure Grab channels information from the website and ask for channel type and names to grab.
--configure-more-channels Use this option to create AUTRES CHAINES list. This allows grabbing listings for some channels that are not
listed in the bouquets on the website. For more informations and a list of channels see
<http://www.lahiette.com/biboobox/forum/viewtopic.php?t=1842>.
--list-channels List available channels for chosen bouquets.
--config-file FILE Use FILE as config file instead of the default config file. This allow to have different config files for i.e. different
apps.
--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 Write to FILE rather than standard output.
--days N Grab N days starting from today, rather than as many as possible.
--offset N Start grabbing N days from today, rather than starting today. N may be negative. Due to the website organization, N cannot be
inferior to -1.
--quiet Suppress the progress messages normally written to standard error.
--debug Provide additional debugging message during processing.
--capabilities Show which capabilities the grabber supports. For more information, see <http://wiki.xmltv.org/index.php/XmltvCapabilities>.
--version Show the version of the grabber.
--help Print a help message and exit.
SEE ALSO
xmltv(5)
AUTHOR
The original author was Sylvain Fabre, centraladmin at lahiette dot com with patches from:
- Francois Gouget, fgouget at free dot fr
- Niel Markwick, nielm at bigfoot dot com
- Zubrick, zubrick at number6 dot ch
- Nick Morrott, knowledgejunkie at gmail dot com
The application is currently maintained by Nick Morrott (knowledgejunkie at gmail dot com).
perl v5.14.2 2011-06-13 TV_GRAB_FR(1p)