10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, I need to replace a character between two numbers (specifically a - to a _). The problem is that they can be *any* numbers. So, I need a one liner to turn a file like this:
into the following
Any help would be appreciated! (5 Replies)
Discussion started by: mikey11415
2. Shell Programming and Scripting
I saw this line of code in a script
and the script never asked for password. Can you please explain on this?:confused: (9 Replies)
Discussion started by: PikK45
3. Shell Programming and Scripting
hi i have two files
one of the form
This file's significance is that it maps the number in first column to that of the number in second column
The other file is of the form
2 (1 Reply)
Discussion started by: vaibhavkorde
4. Shell Programming and Scripting
I would like to do a scripting for finding the links based on the name I have and replace the links with the new name. General find command lists everything for that links ( means all the sub-sirs and all the files), i need only the main link and replace.
Can you anyone give me some... (1 Reply)
Discussion started by: rrb2009
5. Shell Programming and Scripting
I have lines in some files that look exactly as below, and the line numbers they occur in are always the same. (Lines 136-139)
W 0.00000000 0.00000000 2.00000000
W 0.50000000 0.50000000 2.50000000
W 0.00000000 0.00000000 3.00000000
W 0.50000000 0.50000000 3.50000000
I'd like to... (0 Replies)
Discussion started by: bluesmodular
6. Shell Programming and Scripting
Im trying to replace http port value.However for some reason its not working.Can you guys take a look and hit me with suggestions please.Your help is much appreciated.
echo "Enter Value"
sed -i "s/http-port = 80 /http-port = $ans/g" demo
Note:demo is the filename
... (6 Replies)
Discussion started by: coolkid
Hi all ,
I want know the port no on which a particular application is running.
How to find that?
Thanks in anticipation (11 Replies)
Discussion started by: kumarmani
8. Shell Programming and Scripting
I have some ASCII files containing numerous numbers. What I'd like to do is replace all numbers greater than 0 with 1.
Examples of the numbers include: - 000011 and 000042
Thanks (4 Replies)
Discussion started by: vrms
9. UNIX for Dummies Questions & Answers
Is there any way of doing a find & replace within a huge file other than using something like : " vi - FileForReplacing < /u1/excel/consultants "
contents of consultants file looks like
:1,$s/0001355/SMITH/g... (3 Replies)
Discussion started by: Gerry405
10. IP Networking
whatz the command to find which process is using a specific port number? for example, port 8082? (3 Replies)
Discussion started by: darkcastle