02-28-2012
post it without the http in front, then. What it actually looks like makes the difference between whether any of our answers will work or fail. What little I've managed to google up suggests that it does in fact have internal structure you haven't shown, structure which would be destroyed by any of the methods I've tried so far.
If your goal is to avoid overhead, functions running individual instances of sed to do each little thing are exactly what you want to avoid. You want to read the file
once, change what you want to change, and write the result out.
---------- Post updated at 02:17 PM ---------- Previous update was at 02:08 PM ----------
Quote:
Originally Posted by
Toorop
unihub.ru/tools/ofservice/browser/trunk/2.0.1/OpenFOAM-2.0.1/tutorials/incompressible/simpleFoam/motorBike/system/controlDict
403 forbidden...I think.
---------- Post updated at 02:24 PM ---------- Previous update was at 02:17 PM ----------
Got it. Nowhere near as easy as what you asked for. Working on it.
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a file name, for which I want to strip out the first bit and leave the rest...
So I want to take the file name .lockfile-filename.10001 ,strip it and have only filename.10001 ...
Thanking you all inadvance,
Zak (6 Replies)
Discussion started by: Zak
6 Replies
2. Shell Programming and Scripting
Hi,
I would like to know How to use use sed for manipulating string for the following situation.
Basically my objective is to check validity of the filename in my shell script.
I am getting a parameter like this for my shell script.
Check my folder is having some space.
$1=/root/krishna... (2 Replies)
Discussion started by: hikrishn
2 Replies
3. Shell Programming and Scripting
Hello
How do i check that correct input files are used while using AWk and SED for file manipulation?
e.g
awk '/bin/ {print $0 }' shell.txt
sed 's/hp/samsung/' printers.txt
how do i ensure that the correct input files I am working with are used? (5 Replies)
Discussion started by: Pauline mugisha
5 Replies
4. Shell Programming and Scripting
I have large number of data files, close to 300 files, lets say all files are same kind and have extension .dat , each file have mulitple lines in it.
There is a unique line in each file containing string 'SERVER'. Right after this line there is another line which contain a string 'DIGIT=0',... (4 Replies)
Discussion started by: sal_tx
4 Replies
5. Shell Programming and Scripting
hello All,
When I run find command on certain directory I may get one of the following output depending on configuration
A. ./rel/prod/libpam.a
B. ./rel/fld/libpam.a
C. ./deb/detail/libpam.a
D. ./deb/err/libpam.a
I want to get output as below
A. rel/prod
B.... (2 Replies)
Discussion started by: anand.shah
2 Replies
6. Shell Programming and Scripting
Hello, I have a large flat file where i need to change data in columns 131-133 based on what is in columns 172-173. I am not sure if I need to read the file line by line and make the change or if I can do this in a single statement. thank you (3 Replies)
Discussion started by: gblmin
3 Replies
7. Programming
I am trying to verify my understanding on setter and getter on java class with this example:
//MaximumFinder2.java
import java.util.Scanner;
public class MaximumFinder2
{
public static void main (String args)
{
Scanner input = new Scanner(System.in);
... (6 Replies)
Discussion started by: yifangt
6 Replies
8. Shell Programming and Scripting
I have a file which contains contents like below
proxy.config.cluster.mc_group_addr 224.0.1.37
proxy.config.log.logging_enabled 3
proxy.config.log.squid_log_enabled 1
Need to modify to
'proxy.config.cluster.mc_group_addr': '224.0.1.37'
'proxy.config.log.logging_enabled': '3'... (10 Replies)
Discussion started by: esham
10 Replies
9. UNIX for Beginners Questions & Answers
I'm new with sed, and i am really confused with slashes, backslashes, parentheses, I've tried reading some beginner's guide, but still trouble fixing this problem, do you have any tips where or what to read to learn more about sed? can you also help me with my problem?
Note: I was tasked to use... (4 Replies)
Discussion started by: akopocpoypoy
4 Replies