10-13-2009
Thanks Pludi for fixing my post and showing me the ropes.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
I generally use Perl for this
ex.
perl -e 's/pattern/replace/g' -p -i <filename>
I did something like this..
find . -type f -exec perl -e 's/pattern/replace/g' -p -i {} \;
I want to do this with "sed"
but what I get is the output being printed on the screen..
i can do sed... (3 Replies)
Discussion started by: oldtrash
3 Replies
2. Shell Programming and Scripting
I need to remove the '&' from a file.
In each line of the file, the fields are separated by ^K.
I only want to remove '&' if it exists in field number 9. (example of field 9: abc&xyz)
I need to do an in place/in line edit.
So far I have accomplished the following:
awk -F '^K' '{print... (6 Replies)
Discussion started by: hemangjani
6 Replies
3. Shell Programming and Scripting
Col1 Col2 Col3 Col4
12 Completed 08 0830
12 In Progress 09 0829
11 For F U 07 0828
Considering the file above, how could i replace the third column the most efficient way? The actual file size is almost 1G. I am... (10 Replies)
Discussion started by: tamahomekarasu
10 Replies
4. Shell Programming and Scripting
I have the follwoing file:
This looks to be : seperated.
For the first field i want only the file name without ".txt" and also i want to remove "+" sign if the second field starts with "+" sign.
Input file:
Output file:
Appreciate your help (9 Replies)
Discussion started by: pinnacle
9 Replies
5. Shell Programming and Scripting
I remember there is a sed switch i can use to edit and save the file at the same time, but i cannot recall it at all.
so instead of
-> sed 's/A/B/' file > file-tmp
-> mv file-tmp file
what can i do to just let sed edit and save the "file" (4 Replies)
Discussion started by: fedora
4 Replies
6. Shell Programming and Scripting
please help me to edit the second field using awk or sed
i have input file below
aa1001 000001
bb1002 000002
cc1003 000003
so i want the output file like below
aa1001 01
bb1002 02
cc1003 03 (38 Replies)
Discussion started by: zulabc
38 Replies
7. Shell Programming and Scripting
Hi,
I have file with all the lines as following format
<namebindings:StringNameSpaceBinding xmi:id="StringNameSpaceBinding" name="ENV_CONFIG_PATH" nameInNameSpace="COMP/HOD/MYSTR/BACKOFFICE/ENV_CONFIG_PATH" stringToBind="test"/>
I want to replace (all the lines) value of... (8 Replies)
Discussion started by: shuklaa02
8 Replies
8. Shell Programming and Scripting
Hey guys,
I'm trying to learn a bit of awk/sed and I'm using different sites to learn it from, and i think I'm starting to get confused (doesn't take much!).
Anyway, say I have a csv file which has something along the lines of the following in it:"test","127.0.0.1","startup... (6 Replies)
Discussion started by: jimbob01
6 Replies
9. Shell Programming and Scripting
Hi Experts,
I am new to shell scripting. Need some help in doing one task given by the customer.
The sample record in a file is as follows:
3538,,,,,,ID,ID1,,,,,,,,,,,
It needs to be the following:
3538,,353800,353800,,,ID,ID1,,,,,COLX,,,,,COLY,
And i want to modify this record in... (3 Replies)
Discussion started by: sugarcane
3 Replies
10. Shell Programming and Scripting
I'm working on a script to execute a number of items. One being, editing particular files to add certain lines. I'm attempting to utilize sed, but, having issues when running from a bash script. Assistance is greatly appreciated.
My example:
sed -i '14 i\
# add these lines
add these lines to... (5 Replies)
Discussion started by: Nvizn
5 Replies
LEARN ABOUT DEBIAN
__gnu_pbds
__gnu_pbds(3cxx) __gnu_pbds(3cxx)
NAME
__gnu_pbds -
SYNOPSIS
Classes
struct associative_container_tag
Basic associative-container.
class basic_hash_table
An abstract basic hash-based associative container.
struct basic_hash_tag
Basic hash.
class basic_tree
An abstract basic tree-like (tree, trie) associative container.
struct basic_tree_tag
Basic tree.
struct binary_heap_tag
Binary-heap (array-based).
struct binomial_heap_tag
Binomial-heap.
class cc_hash_table
A concrete collision-chaining hash-based associative container.
struct cc_hash_tag
Collision-chaining hash.
class container_base
An abstract basic associative container.
struct container_tag
Base data structure tag.
struct container_traits
container_traits
class gp_hash_table
A concrete general-probing hash-based associative container.
struct gp_hash_tag
General-probing hash.
class list_update
A list-update based associative container.
struct list_update_tag
List-update.
struct null_mapped_type
A mapped-policy indicating that an associative container is a set.
struct ov_tree_tag
Ordered-vector tree.
struct pairing_heap_tag
Pairing-heap.
struct pat_trie_tag
PATRICIA trie.
struct priority_queue_tag
Basic priority-queue.
struct rb_tree_tag
Red-black tree.
struct rc_binomial_heap_tag
Redundant-counter binomial-heap.
struct sequence_tag
Basic sequence.
struct splay_tree_tag
Splay tree.
struct string_tag
Basic string container, inclusive of strings, ropes, etc.
struct thin_heap_tag
Thin heap.
class tree
A concrete basic tree-based associative container.
struct tree_tag
tree.
class trie
A concrete basic trie-based associative container.
struct trie_tag
trie.
Typedefs
typedef void trivial_iterator_difference_type
Functions
void __throw_container_error (void)
void __throw_insert_error (void)
void __throw_join_error (void)
void __throw_resize_error (void)
Detailed Description
GNU extensions for policy-based data structures for public use.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 __gnu_pbds(3cxx)