06-11-2011
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I have a requirement to delete a line till a certain word. Am not sure how to do it
e.g I want to delete till the bold character since start of line.
Any help is higly appretiated. (2 Replies)
Discussion started by: inq
2 Replies
2. Shell Programming and Scripting
Hi,
I'm wondering what is the best way to parse out a long string that has a specific deliminator and outputting each token between the delim on a newline?
i.e. input
text1,text2,text3,tex4
i.e. output
text1
text2
text3
text4 (8 Replies)
Discussion started by: primp
8 Replies
3. Shell Programming and Scripting
Hello
i want to know a way so i can delete all the strings in file from the begning till a specific string (1 Reply)
Discussion started by: modcan
1 Replies
4. Shell Programming and Scripting
using sed to replace a specific string on a specific line number using variables
this is where i am at
grep -v WARNING output | grep -v spawn | grep -v Passphrase | grep -v Authentication | grep -v '/sbin/tfadmin netguard -C'| grep -v 'NETWORK>' >> output.clean
grep -n Destination... (2 Replies)
Discussion started by: todd.cutting
2 Replies
5. Shell Programming and Scripting
So i have a file which contains paths to JPG images separated by a space.
I have to separate them each path to another file. So, I have to search all strings that start from /home/ and ends with .jpg or .png
Then write each one to another file...
Can you please help me on doing this???:cool: (11 Replies)
Discussion started by: hakermania
11 Replies
6. Shell Programming and Scripting
how can i run the script if its less than a particular time only in unix.
for e.g the script kicks off at 9AM and looks for some file etc. I want to make sure it runs only till 12PM and then succeed the job and proceed regardless if the file exists or not. how can we do this (1 Reply)
Discussion started by: dsravan
1 Replies
7. Shell Programming and Scripting
Hi guys...Wow I just composed a huge post and it got erased as I was logged out automatically
Anyways I hope someone can help me out here.
So the task I'm working on is like this
I have a bunch of files that I care about sitting in a directory say $HOME/files
Now my job is to go and loop... (6 Replies)
Discussion started by: rukasetsuna
6 Replies
8. Shell Programming and Scripting
Hello, I have an output like
Interface Chipset Driver wlan0 Intel 4965/5xxx iwlagn - and I want to take only the 'wlan0' string. This can be done by
a="Interface Chipset Driver wlan0 Intel 4965/5xxx iwlagn - "
b=${a:25:6}
echo $bThe thing is that wlan0 can be something else, like eth0 or... (2 Replies)
Discussion started by: hakermania
2 Replies
9. Shell Programming and Scripting
Hi,
I have a string which can be completely unstructred. I am looking to parse out values within that String.
Here is an example
<Random Strings> String1=<some number a> String2=<some number b> String3=<some number c> Satish=<some number d> String4=<some number e>
I only want to parse out... (1 Reply)
Discussion started by: satishrao
1 Replies
10. Shell Programming and Scripting
Hi
This is my first post and I'm just a beginner. So please be nice to me.
I have a couple of html files where a pattern beginning with "http://www.site.com" and ending with "/resource.dat" is present on every 241st line. How do I extract this to a new text file?
I have tried sed -n 241,241p... (13 Replies)
Discussion started by: dejavo
13 Replies
IREXEC(1) FSF IREXEC(1)
NAME
irexec - run programs with one button press
SYNOPSIS
irexec [options] [config_file]
DESCRIPTION
This program lets you execute arbitrary commands on an IR signal decoded by lircd, the LIRC daemon. You can give irexec a command line
parameter which has to be a name of a valid config file. If no command line parameters are given irexec reads the default config file which
is usually ~/.lircrc.
If irexec executes a program it will wait until this program terminates. So append a '&' to the command string if you don't want that.
The config string consists of the command to be run.
-h --help
display usage summary
-v --version
display version
-d --daemon
run in background
-n --name
use this program name
OPTIONS
If you add the --daemon option irexec will fork to background. That way you can easily start irexec from an init script. In this case you
should specify a config file on the command line as irexec won't be able to find your home directory. Potential uses are shutting down the
computer, starting a dial-up connection etc.
NOTE
If you start irexec, it reads your ~/.lircrc and reacts only on prog= entries that point to irexec. If you have included more than one pro-
gram in your .lircrc, then start all these programs, they react itself only to their according entries in .lircrc.
SEE ALSO
The documentation for lirc is maintained as html pages. They are located under html/ in the documentation directory.
irexec 0.8.7pre1 May 2010 IREXEC(1)