To get out of vi:
Press the : key then q! followed by the [return] key.
If it is a windows file:
You will see ^M at the end of the lines. Those are windows text file carriage returns. They may mess up unix utilities like sort. Use dos2unix (may be called dos2ux on your box):
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)
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)
Hi,
I have a problem with a shell script.
The script should find all .cpp and .h files and list them.
With:
for file in `find $src -name '*.h' -o -name '*.cpp'
it gives out this:
H:\FileList\A\E\F\G\newCppFile.cpp
H:\FileList\header01.h
H:\FileList\B\nextCppFile.cpp
... (4 Replies)
This is the question being asked: (Sort your data file by last name first, then by the first name second - save as first_last.) I am not quite sure of the type of sort I am being asked to perform. I have read the man pages of the sort command a few times, as well as searching online for possible... (10 Replies)
Hi,
I am having a text file with the following contents
###########
File1
###########
some
page1.txt
text
page.txt
When I sort this file on Red Hat 5, then I get the following output
###########
File1
###########
page1.txt
page.txt
some (3 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)
Discussion started by: aberg
6 Replies
LEARN ABOUT DEBIAN
gstreamer::bin
GStreamer::Bin(3pm) User Contributed Perl Documentation GStreamer::Bin(3pm)NAME
GStreamer::Bin - Base class and element that can contain other elements
HIERARCHY
Glib::Object
+----GStreamer::Object
+----GStreamer::Element
+----GStreamer::Bin
INTERFACES
GStreamer::ChildProxy
METHODS
element = GStreamer::Bin->new ($name)
o $name (string)
$bin->add ($element, ...)
o $element (GStreamer::Element)
o ... (list)
element = $bin->get_by_interface ($interface)
o $interface (string)
element = $bin->get_by_name ($name)
o $name (string)
element = $bin->get_by_name_recurse_up ($name)
o $name (string)
iterator = $bin->iterate_all_by_interface ($interface)
o $interface (string)
iterator = $bin->iterate_elements
iterator = $bin->iterate_recurse
iterator = $bin->iterate_sinks
iterator = $bin->iterate_sorted
$bin->remove ($element, ...)
o $element (GStreamer::Element)
o ... (list)
PROPERTIES
'async-handling' (boolean : default false : readable / writable / private)
The bin will handle Asynchronous state changes
'message-forward' (boolean : default false : readable / writable / private)
Forwards all children messages
SIGNALS
element-added (GStreamer::Bin, GStreamer::Element)
element-removed (GStreamer::Bin, GStreamer::Element)
boolean = do-latency (GStreamer::Bin)
SEE ALSO
GStreamer, Glib::Object, GStreamer::Object, GStreamer::Element
COPYRIGHT
Copyright (C) 2005-2011 by the gtk2-perl team.
This software is licensed under the LGPL. See GStreamer for a full notice.
perl v5.14.2 2012-03-01 GStreamer::Bin(3pm)