for file in `find $src -name '*.h' -o -name '*.cpp'
First let's avoid using "for" for open-ended lists.
There is no easy way with unix "sort" to cause the "h" of "header01" to appear before the "A" or the "B". Now if you had called it "01header.h" that would be a better design but I recognise that this is an include file and that the name is important!
You can get the "header01.h" at the top of the list with "sort -r" but the subdirectories would be reversed.
Hi--
Ok. I have now found that:
find -x -ls
will do what I need as far as finding all files on a particular volume. Now I need to sort the results by the file's modification date/time.
Is there a way to do that?
Also, I notice that for many files, whereas the man for find says ls is... (8 Replies)
Hi All
I have a flat text file. Each line in it contains a "/full path/filename". The last three columns are predictable, but directory depth of each line varies.
I want to sort on the last three columns, starting from the last, 2nd last and 3rd last. In that order. The last three columns... (6 Replies)
Here is the code, but the list is not sorted properly (alphabetically)?
<?php
function folderlist(){
$startdir = './';
$ignoredDirectory = '.';
$ignoredDirectory = '..';
if (is_dir($startdir)){
if ($dh = opendir($startdir)){
while (($folder = readdir($dh)) !== false){
if... (0 Replies)
I am trying to sort a file . The file looks like this:
DDFF 2 /ztpfrepos/pgr/load
DDFQ 2 /ztpfrepos/pgr/load
DDFX 2 /ztpfrepos/pgr/load
DDUA 2 /ztpfrepos/pgr/load
My command:
sort -k1 /home/c153507/Bin/OPL1.txt -o /home/c153507/Bin/OPL1.txt
The results are OK except for one line where... (4 Replies)
Hi,
Am running the command below to search for files that contains a certain string.
grep -il "shutdown" `find . -type f -mtime -1 -print` | grep "^./scripts/active"
How do I get it to do a ls -l on the list of files? I tried doing ls -l `grep -il "shutdown" `find . -type f -mtime -1... (5 Replies)
Hello and thanks in advance for any help anyone can offer me
I'm trying to learn the find command and thought I was understanding it... Apparently I was wrong. I was doing compound searches and I started getting weird results with the -size test. I was trying to do a search on a 1G file owned by... (14 Replies)
Hi Folks -
I have this file that looks like this:
outbox/logs/Client_1042.log
outbox/logs/Client_941.log
outbox/logs/Client_942.log
outbox/logs/Client_943.log
outbox/logs/Client_944.log
And this is my code:
#!/bin/bash
_OUTBOX_BIN="outbox/logs/"
_NAME="Client"
_TEMP="temp.txt"... (9 Replies)
Could you please advise on the following: I have two space-delimited files with 9 and 10 columns, respectively, with exactly the same values in column 1. However, the order of column 1 differs between the two files, so I want to sort both files by column 1, so that I can align them and... (6 Replies)
Using the 'strings' command and piping the result to 'sort' is producing strange results. I get block of lines that begin with asterisks, then a block that begins with some text, then more lines that begin with asterisks. The actual content is correct - lines beginning with asterisks is the... (5 Replies)
Discussion started by: edstevens
5 Replies
LEARN ABOUT DEBIAN
appdataunit
AppDataUnit(3) Library Functions Manual AppDataUnit(3)NAME
AppDataUnit -
Interface (envelope) to data received over RTP packets.
SYNOPSIS
#include <queuebase.h>
Public Member Functions
AppDataUnit (const IncomingRTPPkt &packet, const SyncSource &src)
~AppDataUnit ()
AppDataUnit (const AppDataUnit &src)
AppDataUnit & operator= (const AppDataUnit &source)
Assignment operator.
PayloadType getType () const
const uint8 *const getData () const
Get data as it is received in RTP packets (i.e.
size_t getSize () const
const SyncSource & getSource () const
bool isMarked () const
Is this data unit marked?.
uint16 getSeqNum () const
Get data unit sequence number.
uint8 getContributorsCount () const
Get the number of contributing sources in the CSRC list.
const uint32 * getContributorsID () const
Get the array of 32-bit CSRC identifiers.
Detailed Description
Interface (envelope) to data received over RTP packets.
A class of objects representing data transmitted over RTP packets. Tipically, this object will apply to received data. Data blocks received
via RTP connections as well as its related objects (source, etc), are accessed through the methods of this class.
Author:
Federico Montesino Pouzols fedemp@altern.org
Examples:
audiorx.cpp, ccrtptest.cpp, rtpduphello.cpp, rtphello.cpp, and rtplisten.cpp.
Constructor & Destructor Documentation
AppDataUnit::AppDataUnit (const IncomingRTPPkt &packet, const SyncSource &src)
AppDataUnit::~AppDataUnit () [inline]
AppDataUnit::AppDataUnit (const AppDataUnit &src)
Parameters:
src the AppDataUnit object being copied
Member Function Documentation
uint8 AppDataUnit::getContributorsCount () const [inline]
Get the number of contributing sources in the CSRC list.
const uint32* AppDataUnit::getContributorsID () const [inline]
Get the array of 32-bit CSRC identifiers. Returns:
NULL if (getContributorsCount() == 0)
const uint8* const AppDataUnit::getData () const [inline]
Get data as it is received in RTP packets (i.e. for multi-octet encodings, octets are in network order.
Returns:
Raw pointer to data block.
Examples:
audiorx.cpp, ccrtptest.cpp, rtpduphello.cpp, and rtphello.cpp.
uint16 AppDataUnit::getSeqNum () const [inline]
Get data unit sequence number.
size_t AppDataUnit::getSize () const [inline]
Returns:
length of data in octets
Examples:
audiorx.cpp, and rtplisten.cpp.
const SyncSource& AppDataUnit::getSource () const [inline]
Returns:
Source that sent this data
Examples:
rtplisten.cpp.
PayloadType AppDataUnit::getType () const [inline]
Returns:
type of this data
Examples:
rtplisten.cpp.
bool AppDataUnit::isMarked () const [inline]
Is this data unit marked?. Returns:
true if marked.
AppDataUnit& AppDataUnit::operator= (const AppDataUnit &source)
Assignment operator. Parameters:
source the AppDataUnit object being assigned
Returns:
the result of the assignment
Author
Generated automatically by Doxygen for ccRTP from the source code.
ccRTP Sat Jun 23 2012 AppDataUnit(3)