02-22-2012
It will likely print ? if nothing is substituted (i.e. if the string to replace doesn't exist, or you run it for a second time).
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i am running solaris 9 i now how to create virtual ip address but how do i keep them so when the server reboots they are still there?...THANX (2 Replies)
Discussion started by: rmuhammad
2 Replies
2. UNIX for Dummies Questions & Answers
How do I change IP addresses in command mode? i need to assign custom (non DHCP) addresses from the command line. Actually I also need to know how to change the subnet mask, the gateway and the primary, secondary, ... dns servers. (6 Replies)
Discussion started by: Super.Anyak
6 Replies
3. Shell Programming and Scripting
I have a file like below:
I want to delete the rows which begining with "BC" "CD" and "TY" .
then change every fields into one row like this
at last delete the head words :
USing awk to change it is not hard.
I want to know how to do this work using SED ?
Thank you!
... (4 Replies)
Discussion started by: bejgirl
4 Replies
4. IP Networking
I have 2 identical printers with the same IP on my network. One is only used as a backup for the primary printer and both are never on line at the same time. The goal was to always keep only 1 on and have an use the other printer as an immediate backup if necessary. But when I switch the cable I... (4 Replies)
Discussion started by: golfs4us
4 Replies
5. Shell Programming and Scripting
Hi all
i need to create a script that pings every server in my range (0-254) adn then returns the values to a file? can anyone please help. i am working in the tcsh ( and yes i know how to ping ) but i dont know how to ping them all in one script without copying and pasting a 254 times?
... (1 Reply)
Discussion started by: brian112
1 Replies
6. UNIX for Dummies Questions & Answers
Need some help. I need to run a script to modify a csv file. Here is an example off a few lines from the csv
98M-01.WAV,98M,01,00:00:49,01:07:36:00,"MIX",,"BOOM-MKH50",,,,,,,,,,"",
98L-01.WAV,98L,01,00:00:51,01:01:45:00,"MIX",,"BOOM-MKH50",,,,,,,,,,"",
I need a sed script to find all... (4 Replies)
Discussion started by: Vrc2250
4 Replies
7. UNIX for Advanced & Expert Users
Hi,
I have a script which generate a HTML file from a unix user.
Script spool the data extracted from DB using sqlplus.
Problem is html file which gets generated is automatically assigned/owned with oracle user so my unix user just having read only permission to that HTML file.
So I want... (1 Reply)
Discussion started by: sv0081493
1 Replies
8. UNIX for Beginners Questions & Answers
I have a bunch of text files like this:
Sample_S1_L001_R1.txt
Sample_S10_L001_R1.txt
Sample_S11_L001_R1.txt
I am using the following script to add a 0 to those files with a single digit after the S:
ls *.txt | sed 's/\(.*_S\)\(_.*\)/mv & \10\2/' | sh
And then the following script to... (4 Replies)
Discussion started by: Xterra
4 Replies
9. UNIX for Beginners Questions & Answers
Hi I want to use sed to change a text files input into an awk script.
For example if the input says " chord -- english " I want to change this using sed 's/pattern 1 /pattern 2 /'g filename but I don't understand how to use part of the pattern 1 to input that into pattern 2 . Like after... (10 Replies)
Discussion started by: enforcer
10 Replies
10. UNIX for Beginners Questions & Answers
Hi Friends ,
I am having one problem as stated file .
Having an input CSV file as shown in the code
U_TOP_LOGIC/U_HPB2/U_HBRIDGE2/i_core/i_paddr_reg_2_/Q,1,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,1,1,0,0,0,0... (4 Replies)
Discussion started by: kshitij
4 Replies
LEARN ABOUT DEBIAN
ireminder
IREMINDER(1) User Commands IREMINDER(1)
NAME
ireminder - Prayer time reminder
SYNOPSIS
ireminder [-ipraytime path] [-skip event_name] [-reminder minutes] [-inplace] [-execr cmd] [-execs cmd] [-help]
DESCRIPTION
The ireminder script is written in perl and is meant to be a simplistic wrapper to call and process the 'ipraytime' application. ireminder
is used to remind the user via audio indicators of an impending Islamic prayer event.
OPTIONS
Some of the options within ireminder allow for list inputs, those are meant to be a quoted series of text/numbers.
-ipraytime path
Specify the path to the ipraytime executable. Unless this options is specified, the script will default to look for the binary in
/usr/bin, /usr/local/bin and the current directory.
-skip event_name
Specify name of prayer/event to skip, valid options include "imsaak fajr shorooq zuhr asr maghrib isha" (list ok).
-reminder minutes
Specify prior to how many minutes to remind (list ok).
-inplace
Specify to print output in-place (without scrolling).
-execr cmd
Specify an external application trigger for reminders. The %m directive is recognized and is substituted with the normal output
message or string. The %s directive is recognized and is substituted by the salat's name.
-execs cmd
Specify an external application trigger for when the salat reaches its appointed time (ie. "salat now"). The %m directive is recog-
nized and is substituted with the normal output message or string. The %s directive is recognized and is substituted by the salat's
name.
-help Produce a help screen.
REPORTING BUGS
Report bugs on the web using http://bugs.arabeyes.org
AUTHOR
Written by Nadim Shaikli as part of the Arabeyes.org project.
COPYRIGHT
iremidner is subject to the GNU General Public License (GPL).
Copyright (C) 2006, Arabeyes, Nadim Shaikli.
SEE ALSO
The ITL library (libitl) from the Islamic Tools and Libraries project. It is the underlying requirement for ireminder to function. The
ITL library was created and is hosted at www.arabeyes.org.
ireminder January 05, 2005 IREMINDER(1)