Sponsored Content
Top Forums Shell Programming and Scripting Ignore first word using sed in PERL Post 302467349 by thankful123 on Friday 29th of October 2010 04:40:32 AM
Old 10-29-2010
Ignore first word using sed in PERL

Please help me in ignoring first word in a line example

Input log
Code:
123^Babd^Basdf789^B098^Bouiou

Desired output
Code:
abd,asdf789,098,ouiou

123 should be ignored

is this possible using sed regular expressions

Moderator's Comments:
Mod Comment Use code tags - you got a PM with a guide.

Last edited by zaxxon; 10-29-2010 at 05:57 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Make sed ignore lines

Hi I use sed in a script for severall changes in files. I whish one of the substitutions I made to be aplied to every line that has the word "scripts" with the exception for the ones that start with "rsh", wich I wish sed to ignore . Is this possible? If yes, how can I do it? The substitution... (2 Replies)
Discussion started by: Scarlos
2 Replies

2. Shell Programming and Scripting

perl (word by word check if a hash key)

Hi, Now i work in a code that 1-get data stored in the database in the form of hash table with a key field which is the " Name" 2-in the same time i open a txt file and loop through it word by word 3- which i have a problem in is that : I need to loop word by word and check if it is a... (0 Replies)
Discussion started by: eng_shimaa
0 Replies

3. UNIX for Advanced & Expert Users

Script to ignore word from a line ...

Hi Gurus, I'm need of a script in which we are finding an independent word ‘boy' in a log file. We are using grep in order to do the same. Now in this log file there are some sentences where we see ‘This is a boy' and we do not want to count word ‘boy' from this sentence. So in other word we want... (2 Replies)
Discussion started by: heyitsmeok
2 Replies

4. Shell Programming and Scripting

Getting the first word using sed,awk or perl

Input: root:x:0: daemon:x:1: bin:x:2: sys:x:3: adm:x:4: tty:x:5: disk:x:6: lp:x:7: mail:x:8: Output: root daemon bin sys adm tty (8 Replies)
Discussion started by: cola
8 Replies

5. Shell Programming and Scripting

regex - start with a word but ignore that word

Hi Guys. I guess I have a very basic query but stuck with it :( I have a file in which I want to extract particular content. The content is between standard format like : Verify stats A=0 B=12 C=34 TEST Failed Now I want to extract data between "Verify stats" & "TEST Failed" but do... (6 Replies)
Discussion started by: ratneshnagori
6 Replies

6. Shell Programming and Scripting

extract whole thing in word, leaving behind last word. - perl

Hi, i've a string /u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD/TESi T_11_HD_120/hd-12 i need to get string, like /u/user/DTE/T_LOGS/20110622_011532_TEST_11_HD_120/HD the words from HD should get deleted, i need only a string till HD, i dont want to use any built in... (4 Replies)
Discussion started by: asak
4 Replies

7. Shell Programming and Scripting

awk to ignore the text before a particular word

Hi I am new to Awk programming , i would appreciate if anyone help me with the below scenario i have text file arranged in rows and columns like below 11004 04493384 26798 CASSI0000I Server manager initialization started 111004 04493486 26798 CASSI4005I Retrieving ES... (7 Replies)
Discussion started by: rakeshkumar
7 Replies

8. Shell Programming and Scripting

perl lwp find word and print next word :)

hi all, I'm new there, I'm just playing with perl and lwp and I just successfully created a script for log in to a web site with post. I have a response but I would like to have something like this: I have in my response lines like: <div class="sender">mimi020</div> <some html code.....>... (3 Replies)
Discussion started by: vogueestylee
3 Replies

9. Shell Programming and Scripting

Replacing a particular word with another word in all the xml's under a particular directory with sed

Hi Folks, Could you please advise what will be the SED command to replace a word in all xml's under a particular directory for example let say I rite now at the following below location $ cd /ter/rap/config now under config directory there will be lots of xml file , now my objective is to... (1 Reply)
Discussion started by: punpun66
1 Replies

10. Shell Programming and Scripting

Ignore dollar value in sed

Hi Guys, I need to replace the string based on specific value by keeping dollar sign input=$1 var=$(echo "@code_temp_table_$value_table"| sed -r "s/\@code/${input}/;s/(nz|sa)_\$value_/\$value1_\1_/" ) Expected if input=nz,sa then nz_temp_table_$value1_table else if any other... (5 Replies)
Discussion started by: Master_Mind
5 Replies
__gnu_parallel::parallel_tag(3) 			     Library Functions Manual				   __gnu_parallel::parallel_tag(3)

NAME
__gnu_parallel::parallel_tag - SYNOPSIS
Inherited by __gnu_parallel::balanced_quicksort_tag, __gnu_parallel::balanced_tag, __gnu_parallel::default_parallel_tag, __gnu_parallel::exact_tag, __gnu_parallel::multiway_mergesort_exact_tag, __gnu_parallel::multiway_mergesort_sampling_tag, __gnu_parallel::multiway_mergesort_tag, __gnu_parallel::omp_loop_static_tag, __gnu_parallel::omp_loop_tag, __gnu_parallel::quicksort_tag, __gnu_parallel::sampling_tag, and __gnu_parallel::unbalanced_tag. Public Member Functions parallel_tag () parallel_tag (_ThreadIndex __num_threads) _ThreadIndex __get_num_threads () void set_num_threads (_ThreadIndex __num_threads) Detailed Description Recommends parallel execution at compile time, optionally using a user-specified number of threads. Definition at line 46 of file tags.h. Constructor &; Destructor Documentation __gnu_parallel::parallel_tag::parallel_tag () [inline] Default constructor. Use default number of threads. Definition at line 53 of file tags.h. __gnu_parallel::parallel_tag::parallel_tag (_ThreadIndex__num_threads) [inline] Default constructor. Recommend number of threads to use. Parameters: __num_threads Desired number of threads. Definition at line 58 of file tags.h. Member Function Documentation _ThreadIndex __gnu_parallel::parallel_tag::__get_num_threads () [inline] Find out desired number of threads. Returns: Desired number of threads. Definition at line 63 of file tags.h. Referenced by __gnu_parallel::__parallel_sort(). void __gnu_parallel::parallel_tag::set_num_threads (_ThreadIndex__num_threads) [inline] Set the desired number of threads. Parameters: __num_threads Desired number of threads. Definition at line 73 of file tags.h. Author Generated automatically by Doxygen for libstdc++ from the source code. libstdc++ Tue Jun 10 2014 __gnu_parallel::parallel_tag(3)
All times are GMT -4. The time now is 08:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy