comp.unix.shell
  Home FAQ Contact Sign in
comp.unix.shell only
 
Advanced search
July 2008
motuwethfrsasuw
 123456 27
78910111213 28
14151617181920 29
21222324252627 30
28293031    31
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007 2006  
total
comp.unix.shell Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  How to rename files and contents of the file         


Author: chinna
Date: Jul 6, 2008 20:38

Hi,

I have two files
XYZ_INPUT_FILE_ABCD.YYYYMMDD
XYZ_INPUT_CONTROL_ABCD.YYYYMMDD

In Shell script i have to change the character "_" before ABCD with
dot(.)
It should be like this
XYZ_INPUT_FILE.ABCD.YYYYMMDD
XYZ_INPUT_CONTROL.ABCD.YYYYMMDD
and also inside the second file XYZ_INPUT_CONTROL_ABCD.YYYYMMDD the
first file name (XYZ_INPUT_FILE_ABCD.YYYYMMDD) is present. So i have to
change the character "_" before ABCD with dot(.)

Could you please help me out on this. I appreciate your help in
advance.
Thanks
Chinna
Show full article (0.75Kb)
2 Comments
  find all files .mp3 in a direcroty, what command?         


Author: Cristiano
Date: Jul 6, 2008 06:57

Hy,
i must find all files .mp3 in a directory.
then i must print the list in the monitor.
what comand can i use? I think "find" but i don t know how to use it.
can you help me?
sorry for my bad english i m not an english boy.
Thanks
6 Comments
  using cp command to make soft link problem         


Author: enjoyfate
Date: Jul 6, 2008 05:13

" ln -s linux-2.24 linux " has the effect which makes a soft link
" linux" point to "linux-2.24" directory(linux->linux-2.24) ,since cp
command has -s (make symbolic links instead of copying) option, I do
"cp -s linux-2.24 linux " ,but didn't have the same effection . I
want to know whether cp have some tips can do this .Many Thanks.
1 Comment
  FREE SOFTWARE DOWNLOAD         


Author: PREMA
Date: Jul 6, 2008 04:46

FREE SOFTWARE DOWNLOAD
http://freesoftware20.blogspot.com
no comments
  Re: Elisp Lesson on file processing (make downloadable copy of a website)         


Author: xahlee
Date: Jul 6, 2008 01:05

In this week i wrote a emacs program and tutorial that does archiving
a website for offline reading.
(See http://xahlee.org/emacs/make_download_copy.html )

In the process, i ran into a problem with the unix “cp” utility. I've
been a unix admin for Solaris during 1998-2004. Even the first time i
learned about cp, i noticed some pecularity. But only today, i thought
about it and wrote it out exactly what's going on.

Here's a excerpt from my emacs tutorial above regarding the issue.
------------------

Copying a bunch of directories seems a trivial operation, but it
actually took me a couple hours to arrive at the final code, due to
the exact requirement of directory paths, and the unix “cp” tool's
lack of precision and flexibility.

Originally, i thought the code would be something simple like several
“(shell-command (concat "cp -R " fromDir " " toDir))”, one for each
source dir, where fromDir and toDir are full paths. However, it turns
out the problem is slightly more complex.
Show full article (3.33Kb)
2 Comments