Sponsored Content
Top Forums Shell Programming and Scripting Need to extract characters between two search words in a script!! Post 302941586 by arjunstarz on Friday 17th of April 2015 01:57:37 PM
Old 04-17-2015
Thanks guys
 

10 More Discussions You Might Find Interesting

1. HP-UX

extract field of characters after a specific pattern - using UNIX shell script

Hello, Below is my input file's content ( in HP-UX platform ): ABCD120672-B21 1 ABCD142257-002 1 ABCD142257-003 1 ABCD142257-006 1 From the above, I just want to get the field of 13 characters that comes after 'ABCD' i.e '120672-B21'... . Could... (2 Replies)
Discussion started by: jansat
2 Replies

2. Shell Programming and Scripting

Script for pulling words of 4 to 7 characters from a file

Even just advice on where to start would be helpful. Thank You (2 Replies)
Discussion started by: Azeus
2 Replies

3. Shell Programming and Scripting

Perl script to search and extract using wildcards.

Good evening All, I have a perl script to pull out all occurrences of a files beginning with xx and ending in .p. I will then loop through all 1K files in a directory. I can grep for xx*.p files but it gives me the entire line. I wish to output to a single colum with only the hits found. ... (3 Replies)
Discussion started by: CammyD
3 Replies

4. Shell Programming and Scripting

extract characters from file name - script

trying to extract the numbers in this file name: fname="ebcdic.f0633.cmp_ebcdic.f0633.bin" fnametmp=${fname#*(V|v|F|f)} parse=${fnametmp%%(ENC|enc|CMP|cmp|BIN|bin)}} echo FLRECL=$parse result is FLRECL=0633.cmp_ebcdic.f0633 expected result FLRECL=0633 my guru is on holiday and i need... (5 Replies)
Discussion started by: mambo2523
5 Replies

5. Shell Programming and Scripting

help with Scripting - trying to search for string and extract next few characters

Hi I am new to world on unix scripting so any assistance would be gratefully appreciated, I am trying to write a script which reads through a file, reads in line by line, searches for a pattern, copies string after it and then to do a search and replace elsehwere in the line, so the... (7 Replies)
Discussion started by: LonJ_80
7 Replies

6. Shell Programming and Scripting

Get characters between two words

Guys, Here is the txt file... SLIC N0SLU704034789 rŒ° EJ00 ó<NL DMRG>11 100 4B 2 SLIC N0SLU704034789 rŒ° TJ10 <4000><NL> 2 SLIC N0SLU704034789 ... (2 Replies)
Discussion started by: gowrishankar05
2 Replies

7. Shell Programming and Scripting

Script to search and extract the gene sub-location from gff file.

Hi, my problem is that I have two files. File no. 1 is a gff text file (say gi1) that has gene information like : ******************** gene 39389788..39395643 /gene="RPSA" /note="Derived by automated computational analysis using ... (2 Replies)
Discussion started by: reena2305
2 Replies

8. Shell Programming and Scripting

Search for a pattern,extract value(s) from next line, extract lines having those extracted value(s)

I have hundreds of files to process. In each file I need to look for a pattern then extract value(s) from next line and then search for value(s) selected from point (2) in the same file at a specific position. HEADER ELECTRON TRANSPORT 18-MAR-98 1A7V TITLE CYTOCHROME... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies

9. UNIX for Beginners Questions & Answers

Non-root script used search and list specific key words

Hy there all. Im new here. Olso new to terminal & bash, but it seams that for me it's much easyer to undarsatnd scripts than an actual programming language as c or anyother languare for that matter. S-o here is one og my home works s-o to speak. Write a shell script which: -only works as a... (1 Reply)
Discussion started by: Crisso2Face
1 Replies

10. Shell Programming and Scripting

Search words in any quote position and then change the words

hi, i need to replace all words in any quote position and then need to change the words inside the file thousand of raw. textfile data : "Ninguno","Confirma","JuicioABC" "JuicioCOMP","Recurso","JuicioABC" "JuicioDELL","Nulidad","Nosino" "Solidade","JuicioEUR","Segundo" need... (1 Reply)
Discussion started by: benjietambling
1 Replies
PARTY(1)						      General Commands Manual							  PARTY(1)

NAME
party - set OS responses mode SYNOPSIS
party ON|OFF|WHEREIS [ - ] dnv DESCRIPTION
Operating systems being what they are, the admin people can easily grow tired of command responses that resemble dyslexic eugene- speak filtered through Kernighan and Ritchie's collective back-brains. To alleviate this, we have included a slightly more `casual' mode, in which the responses to all commands are first filtered through a customising routine (DUDE) , which makes them sound a little more friendly while retaining their full information content (usually). The rooted(c) system prompt is changed to `What now, dude?' and output from each command is terminated by `No problem, dude.' OPTIONS
-v Verbose mode (ALL commands have a `verbose' mode). When this option is present, all filtered responses are preceeded by a message: `This response has been parsed by the DUDE filter and is not intended to be some sort of sleazy come-on.' -d Don't restart all processes after recompiling the /uselss/libs/eugene file (see below). This alows any important tasks to complete beforehand. -n Notify all users that they are about to be force-logged out and force-logged in again. ON Activates the DUDE filter. OFF De-activates the DUDE filter. WHEREIS Doesn't do anything, but we couldn't resist it. EXAMPLES
%-) party on What now, dude? To compare the differing responses, here is output provided by the ispi -s command, with party OFF and party ON: party OFF line who why how long ========================================================== 000 rooted that's you, dweeb! epoch ---------------------------------------------------------- 00F wp she's supposed to be 0:44:12 typing up the end of financial year report, but she's been doing her resume when she thinks no-one is watching ---------------------------------------------------------- 014 maint playing games, as usual 0:51:16 party ON Well, let's see who's on, eh? There's you, of course, on line 000 (Imagine that! Hahaha!) Oh look, on serIOus line 00F, it's that cute little secretary - looks like she's lost her keyboard template again, she's been hitting the escape key for the past five minutes! AND OF COURSE, the guys down in maintenance are playing `cosmic ballcrushers'. As usual. Well, who else, um, no-one really interesting like, ya know, oh hang on, DTR is toggling on serIOus line 03D.. oh, no problem, it's that stuffed modem again. You want maybe I should send some AMail to maintenance and get 'em to look at it? No problem, dude. What now, dude? FILES
/uselss/libs/bill&ted/DUDE This is the pipe process, usually started at system shoe, which lies idle until party ON is issued. /uselss/libs/eugene Contains all of the ordinary, ho-hum confusing computer - jargonese responses which commands ordinarily issue. Text file. /uselss/libs/eugene.spoo compiled version of the eugene file. /ephemeral/eugene.chex Checksum for the compiled eugene file. SEE ALSO
crp(1), stuffio(2), doobrie(9), gouge(3), ftang(65534), wi(-1), edmond(29), jumpstart(2), vo_mit(992) BUGS
The -n option can be slow. If the n option is issued, some users in a wi editing session may not receive the `warning, restart imminent' message until after the restart. There is no way selectively to follow symbolic links. Sunburne Computer, Inc. 9 October 1991 Aug 18, 1997 PARTY(1)
All times are GMT -4. The time now is 10:21 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy