Search Results

Search: Posts Made By: monsanbu
28,733
Posted By monsanbu
Hi, Try this code. This will get the...
Hi,

Try this code. This will get the directory name as the parameter and rename all the filenames with "." in it. I hope the script will be easy for you to understand.


#!/bin/ksh
#Rename...
5,471
Posted By monsanbu
Try this echo "the date is :\c" date ...
Try this


echo "the date is :\c"
date


--Mons
3,820
Posted By monsanbu
Hi, Try this command grep -v...
Hi,

Try this command



grep -v '^$' remove_wp.txt | sed -e 's/ //g' -e 's/ //g' | sed 'N;N;s/\n//g'




-Mons
1,670
Posted By monsanbu
Hi, Try the following script ...
Hi,

Try the following script


#!/bin/sh
errorexit ()
{
echo Error : $*
echo
}
stval=`cut -d, -f1 dir.conf`
errorcount=0
for dir in $stval
do
echo " this is $dir"
if [ ! -d "$dir" ]...
9,346
Posted By monsanbu
This might be complex but the below script will...
This might be complex but the below script will give you the dates lesser than the passed date


#!/bin/ksh
inputdate=`echo $1 | sed 's/^\(..\)\(..\)\(..\)$/\3\2\1/'`
for i in `sed...
5,127
Posted By monsanbu
I think you have posted your question in the...
I think you have posted your question in the wrong forum.

If you are using JSP try using request.getParameter method to capture
10,442
Posted By monsanbu
You dont have execute permission for the file...
You dont have execute permission for the file Script.sh

Just run the following command to grant execute permission

chmod u+x Script.sh

-Mons
70,964
Posted By monsanbu
Why can't you echo the variable to sed and search...
Why can't you echo the variable to sed and search and replace

echo "abcabc" | sed 's/a/x/g'
110,120
Posted By monsanbu
try the below sed command echo "-i abcd-fe"...
try the below sed command

echo "-i abcd-fe" | sed 's/-/X/2'
4,977
Posted By monsanbu
-S is to login to the sqlplus with SILENT option....
-S is to login to the sqlplus with SILENT option.

This suppresses all SQL*Plus information and prompt messages, including the command prompt, the echoing of commands, and the banner normally...
48,310
Posted By monsanbu
Which solution is not working? Give the last two...
Which solution is not working? Give the last two digits for year
48,310
Posted By monsanbu
Try this command You can include this in a...
Try this command
You can include this in a shell script to get the month and year to pass to the below command.

cal 10 05 | grep -v ^$ | tail -1 | sed 's/^.* \([0-9]*\)$/\1/'
Showing results 1 to 12 of 12

 
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy