I was using the _ character as part of the selection pattern, because that was in your example. If your actual files do not contain a _ character before the number then it does not work.
You can also use another criterion, e.g. the part of the filename before the number contains no numbers:
e.g:
Code:
ls | while read name
do
ext=${name##*.}
first=${name%.*}
pre=${first%%[0-9]*}
nr=${first##*[^0-9]}
newnr=$(printf "%03d" $((nr-214)))
mv "$name" "${pre}${newnr}.${ext}"
done
I am getting the list of all the files which have "aaa" from files whose name is File*_bbb*.
grep -l "aaa" File*_bbb*
But I want to count the number of files. That is I want the total number of files which have "aaa" in
files File*_bbb*
If I run the following for getting number of... (1 Reply)
I am trying to find all files in a directory whose name has a real number larger then the number I am looking for.
For example:
.
|-- delta.1.5.sql
|-- delta.2.1.sql
|-- delta.2.2.sql
|-- delta.2.3.sql
|-- delta.2.4.sql
`-- delta.2.5.sql
I know my database is at 2.2 so I want an... (2 Replies)
Hi, here comes another newbie question:
How to find the number of non-duplicate names recursively?
For example, my files are stored in the folders like:
If I do
find . -depth -name "*.txt" | wc -l
This will gives out a result "4". One .txt file named "1.txt" in folder "1",
and... (2 Replies)
I've start and end time in two columns. How can I substract time from column 2 and column 1 and receive output in another file 'd' ?
$ cat c
12:55:04 2:03:56
2:03:56 3:20:17
14:00:00 13:05:00 (1 Reply)
Hi!
I just want to count number of files in a directory, and write to new text file, with number of files and their name
output should look like this,,
assume that below one is a new file created by script
Number of files in directory = 25
1. a.txt
2. abc.txt
3. asd.dat... (20 Replies)
Hi,
I am writing a small unix command to substract one month from the MonthID.
If MonthID = 201301 the below script returns me 201212
if ] then
a=`echo $monthid | cut -c1-4`
b=`expr $a - 1`
c=12
echo "$b$c"
else
a=`echo $monthid | cut -c5-6`
b=`expr $a - 1`
c=`echo $monthid | cut... (4 Replies)
I have 2 files each containing a list of same fedora packages but with different version number. I want to compare the 2 files and remove the lines containing a newer or older version number (1 Reply)
Data files coming in different names in a file name called process.txt.
1. shipments_yyyymmdd.gz
2 Order_yyyymmdd.gz
3. Invoice_yyyymmdd.gz
4. globalorder_yyyymmdd.gz
The process needs to discard all the below files and only process two of the 4 file names available
... (1 Reply)
Hey,
So I'm having issues sorting a data set.
The data set contains entries as such;
# key: sex, time, athlete, athlete's nationality, date, city, country
M, 2:30:57.6, Harry Payne, GBR, 1929-07-05, Stamford Bridge, England
M, 2:5:42, Khalid Khannouchi, MAR, 1999-10-24, Chicago, USA
M,... (1 Reply)
Discussion started by: DNM_UKN
1 Replies
LEARN ABOUT REDHAT
gst-launch-ext
GStreamer(1)GStreamer(1)NAME
gst-launch-ext - Run a predefined GStreamer pipeline
SYNOPSIS
gst-launch-ext filename [filename...]
DESCRIPTION
gst-launch-ext is a tool that is used to run a basic predefined GStreamer pipeline. This application is only used as a quick test to
ensure proper working of codecs and GStreamer. It doesn't handle more advanced features like synchronisation.
All supported formats in GStreamer should be playable by simply typing:
gst-launch-ext filename
It will also print out the pipeline it uses, so you can customize it using cut and paste.
CONFIGURATION
gst-launch-ext can be configured by creating a .gst file in your home directory. This is a perl-style configuration file and can override
the defaults for audio and video output sinks.
Here is an example .gst file that implements the same defaults as hard-coded in the script :
$cfg{AUDIOSINK} = "osssink"; $cfg{VIDEOSINK} = "colorspace ! xvideosink";
You can change osssink to any of esdsink, alsasink, jacksink (if you have the plug-in), and you can change xvideosink to aasink or
sdlvideosink.
Other plug-ins might be used as well if GStreamer has them.
SEE ALSO gst-guilaunch(1), gst-complete(1), gst-register(1), gst-inspect(1), gst-launch(1),
AUTHOR
The GStreamer team at http://gstreamer.net/
February 2002 GStreamer(1)