Sponsored Content
Top Forums Shell Programming and Scripting How to insert a character in line in Special condition? Post 302310271 by bhaskar_m on Friday 24th of April 2009 07:33:57 AM
Old 04-24-2009
Hi ,
Thanks for this reply it is working now. But is it good way to proceed ? because filename is different for different line In that case I have to write an another script to cut the file names and replace it with each time. Your suggetions?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

[OpenServer 5]Line Printing and special character (é @)

Hello, On Sco OpenServer 5, i want to print using the lpr command, no CUPS installed. I print on an HP LaserJet 4050 on LAN (IP 192.168.x.x) the printer is installed by HP Network Printer service. it works fine, but Specials characters, like é, @ or ° print bad characters. Is there... (5 Replies)
Discussion started by: tankd
5 Replies

2. Shell Programming and Scripting

How to filer a line in special condition?

Hi, I hava log file which has the following output : Created RELEASE in dist/filename_release_1_0_20090210.zip Created RELEASE in dist/filename_release_1_1_20090210.zip Created RELEASE in dist/filename_release_1_3_20090210.zip Created RELEASE in... (6 Replies)
Discussion started by: bhaskar_m
6 Replies

3. UNIX for Dummies Questions & Answers

Insert character in the line

Hi All, I have below type file. abc|asd|pqr|2|2|2 asc|qwe|scf|5|4|4 Pipe location and count is dynamic and coming from a variable. I want to change it to below files. (chnage the first pipe to 3 pipes) abc|||asd|pqr|2|2|2 asc|||qwe|scf|5|4|4 (chnage the second pipe to 4 pipes)... (1 Reply)
Discussion started by: swat
1 Replies

4. Shell Programming and Scripting

Insert a special character $ in place of extra spaces

Hi Experts, I have called some.txt with the following content. oracle HYRDSRVIHUB01 pts/0 TESTIHUB 07-JUN-10 CREATE TABLE TESTIHUB PHONE ... (12 Replies)
Discussion started by: naree
12 Replies

5. Shell Programming and Scripting

parse special character in the line

Hi all, I have a file with some module names as below. Font::AFM Data::Grove ---> libxml-perl Net::LDAP ---> perl-ldap DBI XML .... ... .... and so on ... The file has some lines with the character " -->" . Now how can I cut only the last column of the line wherever "-->" is... (4 Replies)
Discussion started by: vijaya2006
4 Replies

6. Shell Programming and Scripting

sort with condition and insert blank line

Hi, I have a file with no blank line anywhere Its a conf file, The lines between and starts with "#" should be sort out with the first three characters(characters are between (a-z)). and insert a blank space in between the uniq lines. For clear understanding ,pls find the below input file... (11 Replies)
Discussion started by: anil8103
11 Replies

7. Shell Programming and Scripting

How to insert line with between two consecutive lines that match special pattern?

I have following pattern in a file: 00:01:38 UTC abcd 00:01:48 UTC 00:01:58 UTC efgh 00:02:08 UTC 00:02:18 UTC and I need to change something like the following 00:01:38 UTC abcd 00:01:48 UTC XXXX 00:01:58 UTC efgh 00:02:08 UTC XXXX (6 Replies)
Discussion started by: jjnight
6 Replies

8. Shell Programming and Scripting

Insert a character before a line

I have a file and I can get the line with a specific pattern. I want to inset # on start of the line. file.text ==== aa bb cc bb hh kk kk ll yy dd aa kk rr tt aa I want to comment out the line with contain "aa" after running the script file.text ==== #aa bb cc bb hh kk kk ll... (7 Replies)
Discussion started by: Biplab
7 Replies

9. Shell Programming and Scripting

Insert New Line Character

Hi, If my first character of a line starts with 2 then after 5th charecter newline character should be inserted. Input.txt: a1234567890 2222300007 bsdfsdf888999999 ssdfkjskfdjskfdjd 2899900000000099999999999999 28887777 999999999999999999 Output.txt: a1234567890 22223 00007... (8 Replies)
Discussion started by: unme
8 Replies

10. Shell Programming and Scripting

Remove blank space and insert special character

Hi Folks, I have a huge data of the below format abc #apple 1200 06/23 ghj #orange 1500 06/27 uyt #banana 2300 05/13 efg #vegetable 0700 04/16 After first 3 letters, i have 9 spaces and after fruit there are no specific fixed space, but it varies... (4 Replies)
Discussion started by: jayadanabalan
4 Replies
DPGEN_SFFT(3)						  Alliance - genlib User's Manual					     DPGEN_SFFT(3)

NAME
DPGEN_SFFT - Static Flip-Flop with Scan-Path Macro-Generator SYNOPSIS
#include <genlib.h> void GENLIB_MACRO (DPGEN_SFFT, char *modelname, long flags, long N); DESCRIPTION
Generate a N bits static flip-flop with scan-path named modelname. The two latches of this flip-flop are i.e. each one is made of two interters looped togethers. How it works : o scan when set to '1' enables the scan-path mode. Note that in scan-path mode, the wen signal is not effective. o scin : the input of the scan-path. This terminal is different from i0[0]. The scout is q[N-1] (in the following example this is q[31]). o wen when set to '1' enables the writing of the flip-flop. TERMINAL NAMES 1. scan : scan-path mode (input, 1 bit). 2. scin : scan path in (input, 1 bit). 3. wen : write enable (input, 1 bit). 4. ck : clock signal (input, 1 bit). 5. i0 : data input (N bits). 6. q : output (N bits). 7. vdd : power. 8. vss : ground. EXAMPLE
GENLIB_MACRO(DPGEN_SFFT, "model_sfft_32" , F_BEHAV|F_PLACE , 32 ); GENLIB_LOINS( "model_sfft_32" , "instance1_sfft_32" , "scan" , "scin" , "wen" , "ck" , "i0[31:0]" , "q[31:0]" /* a[31] is "scout". */ , "vdd", "vss", NULL ); SEE ALSO
GENLIB_MACRO(3), genlib(1) ASIM
/LIP6 30 July 2004 DPGEN_SFFT(3)
All times are GMT -4. The time now is 03:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy