Saturday, September 13, 2008

use of sed inside shell script for removing a particular pattern

Use of sed in removing a particular pattern from a file name
=============================================

#! /bin/ksh
M=`echo manu_rpt | sed 's/_rpt//'`
echo "$M"
R="$M"_sync1
echo "$R"

No comments:

 

Blogger news

Blogroll