9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Dear Guru's
I'm using Putty and want to edit a file. I know we generally use vi editor to do it. As I'm not good in using vi editor, I want to convert the vi into something like text pad. Is there any option in Putty to do the same ? Thanks for your response.
Srini (6 Replies)
Discussion started by: thummi9090
6 Replies
2. Shell Programming and Scripting
Hi Friends,
we have 300+ AIX servers and wants to update /etc/secutiry/user config file to add more parameters for a user. Could you please provide shell script or command?
Existing data:
---------------
ramesh:
admin = false
minlen = 4
TO be updated:
------------------
... (1 Reply)
Discussion started by: suresh3566
1 Replies
3. Shell Programming and Scripting
value of i = solarisbox
ssh $i "cat /etc/hosts | sed "s/$i\.local\.//" | sed "s/$i\./$i/" | sed "s/$i/$i.sol.com/" > /usr/users/chidori/edit_hosts"While running the above one liner its i am not able to make the changes and write it to the file /usr/users/chidori/edit_hosts . I know there is a... (2 Replies)
Discussion started by: chidori
2 Replies
4. Shell Programming and Scripting
I have troubles passing variables to ed.
i'm trying to do something like this:
#!/bin/bash
User=`cat /etc/pmx.conf |grep User | cut -d "=" -f2`
new=$1
ed -s /etc/pmx.conf <<< $'/User/s/$User/$new/g\nw'
:S (9 Replies)
Discussion started by: Tadeo Armenta
9 Replies
5. Shell Programming and Scripting
Hi,
I have searched through this forum as there are many similar entries but could'nt get one of them to work, either that or they were just different to what I needed.
Basically I have a file, recordsDatabase. In this file are a few different fields. There is a unique identifier eg 001... (5 Replies)
Discussion started by: U_C_Dispatj
5 Replies
6. Shell Programming and Scripting
Hi all,
I have a conf file, i want to update some entries in that conf file. Below is the code for that using a temporary file.
sed '/workgroup=/ c\workgroup=Workgroup' /usr/local/netx.conf > /usr/local/netx.conf.tmp
mv -f /usr/local/netx.conf.tmp /usr/local/netx.conf
Sample contents of... (9 Replies)
Discussion started by: ranj14r
9 Replies
7. Shell Programming and Scripting
I am using CVS repositories with eclipse.
I successfully created CVS Repositories with in eclipse. But I have a big problem, I am unable to edit any of the files in our project.
I think it is due to read only property of the file.
I also read the given link
... (2 Replies)
Discussion started by: sufyanfzd
2 Replies
8. Shell Programming and Scripting
For lists in sed, to say what to replace, is this correct:
I am hoping that this would recognise that either a "." is present, or that the substitution happens at the end of the line.
For files with extensions , my script works perfectly.
My problem is, files without extentions, i.e. . ... (1 Reply)
Discussion started by: busillis
1 Replies
9. UNIX for Dummies Questions & Answers
I have a big file, which vi opens it with message not sufficient space with file system.
I am not adding any data in the file but changing some values within.
To make these changes effective, it asks for forced write (w!), even after doing this,
I see this particular record, change is not... (4 Replies)
Discussion started by: videsh77
4 Replies