11-02-2010
Quote:
Originally Posted by
marcozd
Here is the output from "uname -a":
Linux 2.6.18-194.11.4.e15
---------- Post updated at 02:26 PM ---------- Previous update was at 02:24 PM ----------
I want to remove all the frames that are a multiple of 3.
That is, I want to remove, 3,6,9,12,15,....until the end.
Then I want the output to contain frames 1,2,4,5,7,8,10,11, etc.
Hope that helps.
It does exactly that when I use m=3. This should work on your platform, does it not?
Last edited by Scrutinizer; 11-02-2010 at 03:33 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi all,
i wrote a script to mail myself using pine (modified) to keep remind of b'days.
#!/bin/bash
grep "`date +%D |awk -F/ '{print $2+1, $1+0}'`" dataFile >/home/username/mailme
if test -s /home/username/mailme
then
pine -I '^X,y' -subject "Birthday Remainder" username... (4 Replies)
Discussion started by: timepassman
4 Replies
2. Programming
hi!
i m tryin to write a program that will perform a specific tasks after fixed interval of time.say every 1 min.
i jus donno how to go abt it.. which functions to use and so on...
i wud like to add that i am dont want to use crontab over here.
ny lead is appreciated.
thanx. (2 Replies)
Discussion started by: mridula
2 Replies
3. Shell Programming and Scripting
I want to check process status at regular interval of time ...
so i ha wirtten this BUT its not working when i placed this peace of code in .sh ..
please help me out
#!/bin/sh
w = ps -ef|grep processname | wc - l
echo $w
if ; then
Banner "Proceesname Problem"
else
Banner " Running... (5 Replies)
Discussion started by: srinivasvandana
5 Replies
4. Shell Programming and Scripting
I have a text file that contains numbers (listed from the smallest to the largest).
For ex.
34
817
1145
1645
1759
1761
3368
3529
4311
4681
5187
5193
5199
5417
5682
.
. (5 Replies)
Discussion started by: Lucky Ali
5 Replies
5. Shell Programming and Scripting
I need a perl substitution to remove only the comment in the line . That line may have '#' with in double quotes .I used the following ,
s/(^.*\".+?#.+?\".+?)(#.*)/$1/g
It works for ,
print " not a comment # not a comment " . "not a comment # not a comment" ; # It is a comment
... (3 Replies)
Discussion started by: karthigayan
3 Replies
6. UNIX for Advanced & Expert Users
I'm having a couple of issues. I'm trying to edit a nagios config and remove a host definition if a certain "host_name" is found. My thought is I would find host definition block containing the host_name I'm looking for and output the line numbers for the first and last lines. Using set, I will... (9 Replies)
Discussion started by: mglenney
9 Replies
7. Shell Programming and Scripting
Hello,
Although I have found similar questions, I could not find advice that
could help with our problem.
The issue:
We have several hundreds text files containing repeated blocks of text
(I guess back at the time they were prepared like that to optmize
printing).
The block of texts... (13 Replies)
Discussion started by: samask
13 Replies
8. Programming
Hi,
I need your expertise in selecting files from a folder.
I have files named with convention: filename.i.j
where j is an interger from 1 to 16, for each i which is an integer from 1 to 2000.
I would like to select the files with i in regular interval of 50 like
filename.1.j,... (2 Replies)
Discussion started by: rpd25
2 Replies
9. Shell Programming and Scripting
I had a string in perl script as below.
Tue Augáá7 03:54:12 2012
Now I need to replace the special character with space.
After removing the special chaacters
Tue Aug 7 03:54:12 2012
Could anyone please help me here for writing the regular expression?
Thanks in advance..
Regards,
GS (1 Reply)
Discussion started by: giridhar276
1 Replies
10. UNIX for Dummies Questions & Answers
I need to write a script which can send files via sftp communication continously for half an hour or any given duration of time. I have already written a batch file to send multiple file via SFTP.
but I need to know how can we set a duration of half an hour through shell script. Can we use sleep... (2 Replies)
Discussion started by: talk1234
2 Replies
LEARN ABOUT REDHAT
ng_gif_demux
NG_GIF_DEMUX(4) BSD Kernel Interfaces Manual NG_GIF_DEMUX(4)
NAME
ng_gif_demux -- demultiplexer for packets from ng_gif(4) nodes
SYNOPSIS
#include <netgraph/ng_gif_demux.h>
DESCRIPTION
The ng_gif_demux netgraph node type demultiplexes the output from ng_gif(4) nodes in the netgraph(4) networking subsystem.
The gif hook is meant to be connected to the lower or orphans hook of an ng_gif(4) node. The inet, inet6, atalk, ipx, atm, natm, and ns
hooks output frames of the given type when they are received on the gif hook. When a frame is received on one of these hooks, it is encapsu-
lated and sent out the gif hook.
HOOKS
This node type supports the following hooks:
gif Connection to the lower or orphans hook of an ng_gif(4) node.
inet Hook for input and output of IP frames.
inet6 Hook for input and output of IPv6 frames.
atalk Hook for input and output of AppleTalk frames.
ipx Hook for input and output of IPX frames.
atm Hook for input and output of ATM frames.
natm Hook for input and output of NATM frames.
ns Hook for input and output of NS frames.
CONTROL MESSAGES
This node type supports only the generic control messages.
SEE ALSO
gif(4), netgraph(4), netintro(4), ng_gif(4), ifconfig(8), ngctl(8), nghook(8)
AUTHORS
Brooks Davis <brooks@FreeBSD.org>
BSD
September 18, 2001 BSD