Search Results

Search: Posts Made By: Ananthdoss
2,675
Posted By Ananthdoss
Replace a word using sed
Hi,
I have the following line in file1
export NAME="NEW_NAME"

I'm writing a shell script which reads the NEW_NAME from the user and replace in the file. I have used the following command for...
1,064
Posted By Ananthdoss
Hi I'm getting the following ERROR: Unable to...
Hi
I'm getting the following ERROR: Unable to open policy at s/$PROJECT/"input i give"/.
ERROR: No such file or directory
1,064
Posted By Ananthdoss
Frankling, I tried that but it didnt work...
Frankling,
I tried that but it didnt work either.
1,064
Posted By Ananthdoss
Replacing variable is files in same directory
Hi all,

I'm writing a script to get values from the user and replace it in another file in the same directory.

/usr/bin/sediff 's/$PROJECT/'$PROJECT'/' /ananth/TEMPLATE

TEMPLATE is the...
1,209
Posted By Ananthdoss
-rw-rw-r-- 1 root root 5754 Jan 31 00:19 README ...
-rw-rw-r-- 1 root root 5754 Jan 31 00:19 README
drwxr-xr-x 7 root root 4096 Jan 31 03:27 TEST
drwxr-xr-x 2 root root 4096 Jan 31 03:27 locale
drwxr-xr-x 2 root root 4096 Jan 31 03:27 lib...
1,209
Posted By Ananthdoss
Problem in copy files to a folder
Hi all,
cp -r /tmp/Agent/* /apps/opt/Agent/TEST
When I copy files under /tmp/Agent using this command Files are getting copied to Agent folder also but I need only in the TEST folder.

Is...
Forum: Programming 12-21-2011
1,832
Posted By Ananthdoss
Connecting ssh in java program
Hi I have been trying to connect a remote linux server in a java program through ssh. Can anyone tell me the proper library to include?

Thanks
Ananth
1,479
Posted By Ananthdoss
Thanks :)
Thanks :)
1,479
Posted By Ananthdoss
appending lines to a file dynamically
Hi all,
I have a file with some number of lines. I need to add certain number of lines from another file which may vary according to the user's input and to it.

eg
code:
I/P
file 1
...
1,197
Posted By Ananthdoss
Filtering files
Hi all,
I have some files with different extensions. I want to list the files that doesnt end with particular extension for eg .txt. I want to list all files except .txt. How can I do the same?
...
1,776
Posted By Ananthdoss
Shukla, Excellent. It worked out. Thanks.
Shukla, Excellent. It worked out. Thanks.
1,776
Posted By Ananthdoss
passing variable to another file and replacing
Hi all,

I have a script in file1 which gets input from the user say variable "TYPE". This variable is present in the other file2. I want to replace the variable in the file2 with the value...
1,187
Posted By Ananthdoss
Thanks ahamed...
Thanks ahamed...
1,187
Posted By Ananthdoss
Felipe, It worked out. Thanks :) ----------...
Felipe, It worked out. Thanks :)

---------- Post updated at 04:26 AM ---------- Previous update was at 03:56 AM ----------

Felipe the output I get excludes "\" which is in the input. ...
1,198
Posted By Ananthdoss
Regarding reading lines into a new file
Hi all,

I jut use a loop to read lines from the user and redirect it to a file.


echo "Enter the line"
while read -r LINE
do
echo $LINE >> FILE
...
1,319
Posted By Ananthdoss
problem in SQL query
I used the following code

code
select * from tablename where columnname

Instead of printing the expected output it prints all the files in the present directory since there is a "*" in the...
1
SED
1,584
Posted By Ananthdoss
SED
Can anyone explain what does the below comman mean?
sed 's#\([]\*\$\|[]\)#\\\\\1#g'


Thanks in advance
Ananth

How to use code tags...
1,187
Posted By Ananthdoss
Problem in loop
hi I'm jus getting some input from the user and copy to a file line by line using for loop till the user enters ^b. But when I cat the file many junk characters are present. How can fix this issue?
...
1,452
Posted By Ananthdoss
No man. it is not working
No man. it is not working
1,452
Posted By Ananthdoss
Invoking VI editor
Hi,
I'm using Linux through F-Secure. The VI editor I use doesnt support the syntax highlighter. Is there any way to invoke it?


Thanks in advance
Ananth
Forum: UNIX and Linux Applications 11-08-2011
1,658
Posted By Ananthdoss
Hi In those I know what to filter but in this...
Hi
In those I know what to filter but in this case it can be anything so I need to display all the lines and want to select a particular line and print the same.
Forum: UNIX and Linux Applications 11-08-2011
1,658
Posted By Ananthdoss
Printing a line in a file
Hi
I have a file having multiple lines. I want to print a particular line. How can I do this?


Thanks in advance
Ananth
1,285
Posted By Ananthdoss
Hi for that code rpm -e $(cat t0_remove)...
Hi for that
code
rpm -e $(cat t0_remove) will not work since we cant uninstall all in a single command.
How can I uninstall all in the to_remove list???


Thanks in advance
Ananth
1,285
Posted By Ananthdoss
Filtering a list
Hi all
When I run the system command "rpm -qa |grep xmpp" it lists many files like
xmpp-3.2.10.20111024-3
xmpp-3.2.10.201110_asd
xmpp-3.2.10.201

and I want to uninstall...
1,980
Posted By Ananthdoss
Thank you...
Thank you...
Showing results 1 to 25 of 32

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