help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to replace string conditionally?


From: Peng Yu
Subject: How to replace string conditionally?
Date: Mon, 23 Nov 2009 22:21:31 -0600

$(wildcard *.py)

Suppose that I have the above list of file names. I want to replace
any .py file by the coresponding .sh file if it exists.

That is,

If I have the following files,

a.py a.sh b.py

I want to get the following files

a.sh b.py

Could somebody show me how to do it?




reply via email to

[Prev in Thread] Current Thread [Next in Thread]