I am defining an awk function (Solaris v8 ksh) of:
function firstletter {
echo "$line" | awk '{get=substr($1,1,1);print get}' | read FL
}
I am starting a wile loop with a:
for line in `cat inputfile.lst`
When I call the function from within the for loop it works great fine. From within... (4 Replies)
hi everybody!
i need to read a specific line from a text file using C. can any one suggest how to do it.
i m aware abt fread(), fwrite(), fseek()... but using these allows the pointer to be moved 1 character at a time. Is there a way i could jump directly to a line if i know the line number?... (4 Replies)
Hi,
Normally, I will manually to use "ll" command to list the following file from \FILE\CACHE\ directory and check the jump seq. Can I write a script to loop or/and check jump seq file (if jumped seq and show "missing seq no" message for me)
-rw-rw----+ 1 user develop 14012 Sep 4... (1 Reply)
hi all,
Ive been trying to find some way of doing this for ages but i have is a shell script that activates a python search and there it no tab completion. more familliar with tcsh at the moment but i'm a newbe.
i was trying to make an easy way to browse to a list of working directories.
... (0 Replies)
Hi,
I have an output file which has more than 1,000,000,000 lines. I am accessing this file in another C++ program. Now while accessing the output file using cin, I want to jump, say, to the 5,000,000th line directly and start accessing data from there. Is this possible? Could someone please... (4 Replies)
So, I want to read line-by-line a text file with unknown number of files....
So:
a=1
b=1
while ; do
b=`sed -n '$ap' test`
a=`expr $a + 1`
$here do something with b etc
done
the problem is that sed does not seem to recognise the $a, even when trying
sed -n ' $a p'
So, I cannot read... (3 Replies)
Hi all,
I currently run an OpenSolaris (b134) server at home for share media between a few computers (all Macs at the moment). I use ZFS to mirror a couple of disks and have a couple of SMF manifests.
My background is as a user of OS X and as a user of (Open)Solaris with formal training in... (7 Replies)
Hi All,
I'm trying to figure out which are the trusted-ips and which are not using a script file.. I have a file named 'ip-list.txt' which contains some ip addresses and another file named 'trusted-ip-list.txt' which also contains some ip addresses. I want to read a line from... (4 Replies)
Hi, (I am not too good in command-lines).
I am running a bash script and at some point my loop starts to run super quickly. Then, the steps after do not get processed and there is no further outpout generated. I tried with the sleep 20s option, as I thought some steps would get overlapped, but... (22 Replies)
GStreamer::Event::Seek(3pm) User Contributed Perl Documentation GStreamer::Event::Seek(3pm)NAME
GStreamer::Event::Seek - Structure describing events that are passed up and down a pipeline
METHODS
GstEvent = GStreamer::Event::Seek->new ($rate, $format, $flags, $cur_type, $cur, $stop_type, $stop)
o $rate (double)
o $format (GStreamer::Format)
o $flags (GStreamer::SeekFlags)
o $cur_type (GStreamer::SeekType)
o $cur (64 bit integer)
o $stop_type (GStreamer::SeekType)
o $stop (64 bit integer)
scalar = $event->cur
scalar = $event->cur_type
scalar = $event->flags
scalar = $event->format
scalar = $event->rate
scalar = $event->stop
scalar = $event->stop_type
ENUMS AND FLAGS
enum GStreamer::Format
o 'undefined' / 'GST_FORMAT_UNDEFINED'
o 'default' / 'GST_FORMAT_DEFAULT'
o 'bytes' / 'GST_FORMAT_BYTES'
o 'time' / 'GST_FORMAT_TIME'
o 'buffers' / 'GST_FORMAT_BUFFERS'
o 'percent' / 'GST_FORMAT_PERCENT'
flags GStreamer::SeekFlags
o 'none' / 'GST_SEEK_FLAG_NONE'
o 'flush' / 'GST_SEEK_FLAG_FLUSH'
o 'accurate' / 'GST_SEEK_FLAG_ACCURATE'
o 'key-unit' / 'GST_SEEK_FLAG_KEY_UNIT'
o 'segment' / 'GST_SEEK_FLAG_SEGMENT'
o 'skip' / 'GST_SEEK_FLAG_SKIP'
enum GStreamer::SeekType
o 'none' / 'GST_SEEK_TYPE_NONE'
o 'cur' / 'GST_SEEK_TYPE_CUR'
o 'set' / 'GST_SEEK_TYPE_SET'
o 'end' / 'GST_SEEK_TYPE_END'
SEE ALSO
GStreamer
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::Event::Seek(3pm)