I am trying to rename files based on the created/born date of the file. I Have a total of 4000 files that i am trying to do this with and would like it to be log_yyyymmddhh.gz right now the files are maillog.???.gz.
Can anyone point me in the right direction of how to get this done via scipt?
... (4 Replies)
Hi everyone.
I'm in need of a solution where i need to rename a folder to a name that's inside an XML file in that folder.
OS is Ubuntu 9.10 with Gnome.
I've tried using grep, sed and xpath, but can't seem to find a solution.
This is the simplified folder structure:
FOLDER-NAME
-... (4 Replies)
Good day.
I need a one-liner (if possible) otherwise a longer script to do the following:
I have a list of files in a directory with the same filename extension, ie.
firstfile.cks, anotherfile.cks, somefile.cks, etc.The filename and extension, however, are incorrect. The correct filename... (7 Replies)
Hello,
I've been searching and reading, but I can't figure out how to solve this problem with my newbie skills.
In my directory, I have a list of files (see dirlist.txt attachment) that I need to merge and rename. I have part of the code of the code figured out (see below). However, I... (3 Replies)
Hello,
I am new to shell
I have a folder which contains a list of files, all the files contain the separator :
I need to replace this character for all the filenames (by batch)
ex: hello:world should become hello-world
please help
Thanks (3 Replies)
Hi, I need a bit of help.
I've used awk to get the first 7 characters of a file -
awk '{print substr($0,0,7)}' test.csv
How do I now take this variable to rename test.csv to variable.csv ?
Any help or advice would be greatly appreciated! (2 Replies)
I am trying to use the two files shown below to either remove or rename contents in one of those files. If in file1.txt $5 matches $5 of file2.txt and the value in $1 of file1.txt is not "No Match" then that value is substituted for all values in $5 and $1 of file2.txt. If however in $1 ... (5 Replies)
Hello, I have a text file "file.list" with the contents below.
file1
filename1
file2
filename2
file3
filename3
file1, file2 and file3 are files existing in the same directory as the text file file.list.
I want to rename file1 to filename1, file2 to filename2, as show in the text... (1 Reply)
In the below bash I am trying to copy the only text file (always only one) in /home/cmccabe/Desktop/list/QC/metrics.txt and rename each of the 3 text files according to /home/cmccabe/Desktop/test/list.txt using lines 3, 4 ,5. This format (that is list.txt) is always 5 lines. Thank you :).
... (12 Replies)
I am trying to rename files with spaces and other characters and not able to be successful.
FileNames:
UPLOAD REFERENCE.xls
UPLOAD MASS REFERENCE.XLS
find /UPLOAD REFERENCE/ -depth -type f -name "* *" -exec rename " " "_" "{}" ";"
The above one is successful to replace spaces... (1 Reply)
Discussion started by: eskay
1 Replies
LEARN ABOUT SUNOS
gst-launch-ext-0.8
gst-launch-ext-0.8(1) User Commands gst-launch-ext-0.8(1)NAME
gst-launch-ext-0.8, gst-launch-ext - run a predefined GStreamer pipeline
SYNOPSIS
gst-launch-ext-0.8 filename [filename...] [gst-std-options]
gst-launch-ext filename [filename...] [gst-std-options]
DESCRIPTION
gst-launch-ext-0.8 runs a basic predefined GStreamer pipeline, and prints the name of the pipeline. gst-launch-ext-0.8 is only used as a
quick test to ensure that codecs and GStreamer work properly. gst-launch-ext-0.8 does not handle more advanced features such as synchro-
nization.
OPTIONS
The following options are supported by gst-launch-ext-0.8 and gst-launch-ext:
gst-std-options Standard options available for use with most GStreamer applications. See gst-std-options(5) for more
information.
The following options are supported by gst-launch-ext only:
--gst-list-mm List found major/minor versions. This option displays the versions that are available.
--gst-mm=string Force major/minor version. This option enables you to specify a specific version to run, if you do not want to run the
default version.
--print Print wrapped command line. This option displays the command that will be run, and then runs the command.
OPERANDS
The following operands are supported:
filename The name of the GStreamer pipeline to run.
EXTENDED DESCRIPTION
gst-launch-ext-0.8 can be configured by creating a .gst file in your home directory. This PERL-style configuration file can override the
default values for audio and video output sinks.
The following example .gst file implements the same defaults as those hard-coded in the script:
AUDIOSINK = osssink
VIDEOSINK = ffmpegcolorspace ! xvimagesink
You can change osssink to esdsink, alsasink, or sunaudiosink, and you can change xvimagesink to ximagesink, aasink, or sdlvideosink. You
must have the appropriate plugin installed on the system to use the specified output sink. Other GStreamer plug-ins can also be used.
EXAMPLES
Example 1: Launching a GStreamer Pipeline
example% gst-launch-ext-0.8 filename
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/gst-launch-ext-Executable to run a predefined GStreamer pipeline
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-media |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform.
gst-complete(1), gst-compprep(1), gst-feedback(1), gst-inspect(1), gst-launch(1), gst-md5sum(1), gst-register(1), gst-thumbnail(1), gst-
typefind(1), gst-xmlinspect(1), gst-xmllaunch(1), gstreamer-properties(1), libgstreamer-0.8(3), libgstgetbits(3), gst-std-options(5)NOTES
Written by Brian Cameron, Sun Microsystems Inc., 2004.
SunOS 5.10 14 Oct 2004 gst-launch-ext-0.8(1)