Sponsored Content
Top Forums Shell Programming and Scripting setter and getter functions for file manipulation with sed Post 302602886 by Corona688 on Tuesday 28th of February 2012 03:24:12 PM
Old 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

file name Manipulation using sed

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

How to use sed for string manipulation

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

File manipulation with AWK and SED

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

SED/AWK file read & manipulation

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

Manipulation with the string using sed

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

sed flat file manipulation

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

Simplify setter and getter of java class

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

sed for string manipulation

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

File manipulation place 0 before the number using sed

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
GStreamer::TagSetter(3pm)				User Contributed Perl Documentation				 GStreamer::TagSetter(3pm)

NAME
GStreamer::TagSetter - Element interface that allows setting and retrieval of media metadata HIERARCHY
Glib::Interface +----GStreamer::TagSetter METHODS
$setter->add_tags ($mode, $tag, $sv, ...) o $mode (GStreamer::TagMergeMode) o $tag (string) o $sv (scalar) o ... (list) $setter->merge_tags ($list, $mode) o $list (GStreamer::TagList) o $mode (GStreamer::TagMergeMode) taglist = $setter->get_tag_list tagmergemode = $setter->get_tag_merge_mode $setter->set_tag_merge_mode ($mode) o $mode (GStreamer::TagMergeMode) ENUMS AND FLAGS
enum GStreamer::TagMergeMode o 'undefined' / 'GST_TAG_MERGE_UNDEFINED' o 'replace-all' / 'GST_TAG_MERGE_REPLACE_ALL' o 'replace' / 'GST_TAG_MERGE_REPLACE' o 'append' / 'GST_TAG_MERGE_APPEND' o 'prepend' / 'GST_TAG_MERGE_PREPEND' o 'keep' / 'GST_TAG_MERGE_KEEP' o 'keep-all' / 'GST_TAG_MERGE_KEEP_ALL' o 'count' / 'GST_TAG_MERGE_COUNT' SEE ALSO
GStreamer, Glib::Interface COPYRIGHT
Copyright (C) 2005-2011 by the gtk2-perl team. This software is licensed under the LGPL. See GStreamer for a full notice. perl v5.14.2 2012-03-01 GStreamer::TagSetter(3pm)
All times are GMT -4. The time now is 01:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy