Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: codeman007
7,024
Posted By codeman007
thanks a lot all of you ahmad, Scrutinizer,...
thanks a lot all of you ahmad, Scrutinizer, tene...
This is working for me. You guyz made my day:):):)
7,024
Posted By codeman007
decrement a four part number in shell script
I have a four part number

eg: 1.21.1.3

I need to find a way in shell script to decrement this by one and put in a loop

so the values printed will be

1.21.1.2
1.21.1.1
1.21.1.0

Which...
1,829
Posted By codeman007
can getopts be used to override user input in a script
I have a script which takes user input as options provided

PS3="Select option to do deploy : "

select OPTION in "eardeploy" "hotdeploy"
do
case $OPTION in
"eardeploy" )
...
1,383
Posted By codeman007
i didnt really get this my script is like...
i didnt really get this

my script is like this

#!/bin/bash
if [ $# -lt 3 ] ; then
echo -e "Wrong number of parameters."
echo -e "Usage:"
echo -e " FindReplace 'filepat' findstring...
1,383
Posted By codeman007
sed command replaces \\ to \
I am using the following sed command to

##URL## with C:\\DOCUME~1\\abcde\\APPLIC~1\\URL

as
sed "s^$2^$3^g"

where $2 is ##URL##
and $3 is C:\\DOCUME~1\\abcde\\APPLIC~1\\URL

but i...
8,157
Posted By codeman007
The PATH variable was the problem Thank you...
The PATH variable was the problem Thank you genius otheus
8,157
Posted By codeman007
source a property file in script give error
I have sourced a property file in my script like this to load some variables in the script

Then i am able to echo all the property file values inside script but the script is not able to...
15,001
Posted By codeman007
thanks pmm johnson jerryhone for the suggestions....
thanks pmm johnson jerryhone for the suggestions.
i was keepin little low and couldnt see the mistake..
thanks for all for the help
15,001
Posted By codeman007
using flag inside a for loop to check condition
I have a logic like this
It initializes the flag variable as "T" at the beginning of the loop everytime
Inside each loop it checks for two conditions and updates the flag variable as "A" or "B"
In...
44,753
Posted By codeman007
thanks lorcan its working ...i wasted one...
thanks lorcan

its working ...i wasted one hour on this...
44,753
Posted By codeman007
multiple conditions in if using && operator
VARIABLE="project"
if [ [ -n "$VARIABLE" ] && [ $VARIABLE == "project" ] ]
then
echo "VARIABLE is not empty"
fi


this is not working what is wrong in the syntax??
6,678
Posted By codeman007
Thanks Chris This is working perfect for me ...
Thanks Chris
This is working perfect for me

Thanks for you too Franklin You guyz have helped a lot for a beginner like me
6,678
Posted By codeman007
Franklin I tried this before as i saw it in some...
Franklin I tried this before as i saw it in some other post of yours but my requirement is different


cat ${filename} | while read fileline

do
size=`echo $fileline | cut -d "," -f2`...
6,678
Posted By codeman007
i didnt get this really. I understood since i am...
i didnt get this really. I understood since i am using the pipe ; variables declared outside the while loop are not accessible inside. Is there any means to pass the varible inside the while loop...
6,678
Posted By codeman007
unable to access a variable not local to a while loop
I have a while loop like this


cat ${filename} | while read fileline

do
...

done

I need to access a variable value $newfile inside this while loop
How will i do that??
9,435
Posted By codeman007
Thanks for all the replies. In bash when i...
Thanks for all the replies.
In bash when i type the password it prints the first character on screen
and then types * correctly....but the input is correct

How can i overcome this??
9,435
Posted By codeman007
how to display password as * in the console
Hi,
I have to read the password input and display it as * in the console

How can I do this??
5,805
Posted By codeman007
file A is like this ...
file A is like this

/path1/source/web/service,25,RRR,1.0
/path2/source/web/service,25,RRR,1.0
/path3/source/web/service,25,RRR,1.0
/path4/source/web/service,25,RRR,1.0

file B is like this...
5,805
Posted By codeman007
This is somehow not fulfilling my requirement ...
This is somehow not fulfilling my requirement

Since i am deriving the matching pattern from file A i need a loop

Thanks
16,198
Posted By codeman007
This can be used to achieve this cat...
This can be used to achieve this

cat filenames.csv | while read fileline
do
filename1=`echo $fileline | cut -d "," -f1`
Path=`echo $fileline | cut -d "," -f2`
size=`echo $fileline | cut -d...
5,805
Posted By codeman007
how to delete a matching line from a file
I have file A with 10 lines and file B with 15 lines

I have to read each line from file A and match it with lines in file B

If matching lines are found i need to delete it from file B

The...
75,211
Posted By codeman007
But if i want to do this is in a loop sed...
But if i want to do this is in a loop

sed -e "/$keyword/d" file.txt >file.txt.new

the file.txt.new will have all the matching lines as in file.txt???
How will I do that??
4,009
Posted By codeman007
how to grep a file and cut a corresponding value from the line
i have to grep a file which has contents like

/Source/value/valuefile/readme.txt DefaultVersion:=1.7

I have to grep this file with "/Source/value/valuefile/readme.txt" and cut the...
16,198
Posted By codeman007
I need to execute other commands after looping...
I need to execute other commands after looping through each line excluding the header line and assigning each column in a line to a variable

I believe if i loop using awk i wont be able to...
16,198
Posted By codeman007
This awk command works perfect for me. But if i...
This awk command works perfect for me. But if i add this as a condition to my while loop its not working as expected

I need a condition which will restrict the header line from geting displayed...
Showing results 1 to 25 of 34

 

Featured Tech Videos

All times are GMT -4. The time now is 07:39 AM.
Unix & Linux Forums Content Copyright 1993-2021. All Rights Reserved.
Privacy Policy