Sponsored Content
Full Discussion: sed command issue
Top Forums Shell Programming and Scripting sed command issue Post 302367937 by Scrutinizer on Tuesday 3rd of November 2009 08:55:40 PM
Old 11-03-2009
Quote:
Originally Posted by RubinPat
no scrutinizer it is not working
Strange... and this:
Code:
sed 's/`/'"'/g"



---------- Post updated at 05:55 PM ---------- Previous update was at 05:50 PM ----------

Possibly your character is not a backtick but an opening single quote. If that is the case you'd have to replace my ` character with your own...
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Issue with Sed Command

Hello , I am trying to replace a word :: complete to Failed . work: complete Sed command which i am using is given below :: sed s/work: complete/Failed/g temp1.txt > temp2.txt (Sed command is grabled if i use the above .. because of space which is there between work: and complete. I... (6 Replies)
Discussion started by: raghav1982
6 Replies

2. UNIX Desktop Questions & Answers

Issue with sed command

Hi, I have to replace the character AL2 with AL16 which I have in one of my text file . I used the sed command like this sed 's/sed 's/AL2/AL16/g' test_carr.dat>test_carr1.dat But it is not replacing this value to the output file. The test_carr.dat file contains data like this cat... (1 Reply)
Discussion started by: kavithakuttyk
1 Replies

3. UNIX for Dummies Questions & Answers

Sed Command Issue

Hello, I want to remove the / found when executing the date command. When I use: date +%D | sed 's/\///' I get: 1105/09 I tried: date +%D | sed 's/\*$///' I need to remove all / from the date command, but it does not seem to work (5 Replies)
Discussion started by: mojoman
5 Replies

4. Shell Programming and Scripting

Issue with Sed command

I need to search for a keyword UTF-16 in a list of files if that keyword is found then i need to convert the file to UTF-8 format using iconv command. After this i should substitute the UTF-16 keyword inside the file to UTF-8. Please suggest how to do this in shell scripting. (11 Replies)
Discussion started by: Shruthi8818
11 Replies

5. Shell Programming and Scripting

Sed command issue in linux

I ran one the script in debug mode in linux and have a problem ret='$prmAttunityUser=ais' Now i need to remove $ from this '$prmAttunityUser=ais' so i had added a sed command like this sed 's/$//g' but its not working could you all please help me with an alternate command I want the output... (3 Replies)
Discussion started by: vee_789
3 Replies

6. Shell Programming and Scripting

Issue in using variable within sed command

Hi All, I am trying to use a variable within the sed command but I am not able to get the output. When I am using the following command (without variable) its working fine: sed -n '/2011\/12\/10 18:11:11./,$p' < Log.txt > Delta_Log.txt But when I am putting the value 2011\/12\/10... (4 Replies)
Discussion started by: acoomer
4 Replies

7. Shell Programming and Scripting

Issue with SED command

I have a file that contains lines like this: allgroups: cn=Role1,cn=groups,o=xyz,st=mn,c=us allgroups: cn=Role1,cn=groups,o=xyz,st=mn,c=us I want to remove the string : ,cn=groups,o=xyz,st=mn,c=us and so I tried to use SED. i tried to assign it to a variable and use it: ... (3 Replies)
Discussion started by: vskr72
3 Replies

8. UNIX for Dummies Questions & Answers

Issue with sed command

Hi, I want to use a code like sed -n "1,9988p" filename | wc -l I tried from=1 till=9988 sed -n "/$from/,/$till/p" filename |wc -l Issue: sed -n "1,9988p" filename | wc -l -- Returns 9988 rows But sed -n "/$from/,/$till/p" filename |wc -l # Returns > 9988 rows(Complete file) I... (2 Replies)
Discussion started by: Gurkamal83
2 Replies

9. Shell Programming and Scripting

sed command issue in script

Hi, I am using sed command to extract data from my log file for a certain time interval. From and To "time" are my input arguments. Now if i use the sed command on command line. I get the desired results and If i use it in script.It fails. sed command as command line: sed -n '/04-Mar-2015... (6 Replies)
Discussion started by: oberoi1403
6 Replies

10. Shell Programming and Scripting

Issue with sed command

Hi, I have a script that replaces one string with the other in all files under the specified directory. !/bin/bash # **************** Change Variables Here ************ startdirectory="/opt/app/properties/tmp_new" searchterm="Oracle/Middleware/" replaceterm="" #... (1 Reply)
Discussion started by: mohtashims
1 Replies
IPC::SysV(3pm)						 Perl Programmers Reference Guide					    IPC::SysV(3pm)

NAME
IPC::SysV - System V IPC constants and system calls SYNOPSIS
use IPC::SysV qw(IPC_STAT IPC_PRIVATE); DESCRIPTION
"IPC::SysV" defines and conditionally exports all the constants defined in your system include files which are needed by the SysV IPC calls. Common ones include IPC_CREATE IPC_EXCL IPC_NOWAIT IPC_PRIVATE IPC_RMID IPC_SET IPC_STAT GETVAL SETVAL GETPID GETNCNT GETZCNT GETALL SETALL SEM_A SEM_R SEM_UNDO SHM_RDONLY SHM_RND SHMLBA and auxiliary ones S_IRUSR S_IWUSR S_IRWXU S_IRGRP S_IWGRP S_IRWXG S_IROTH S_IWOTH S_IRWXO but your system might have more. ftok( PATH ) ftok( PATH, ID ) Return a key based on PATH and ID, which can be used as a key for "msgget", "semget" and "shmget". See ftok. If ID is omitted, it defaults to 1. If a single character is given for ID, the numeric value of that character is used. shmat( ID, ADDR, FLAG ) Attach the shared memory segment identified by ID to the address space of the calling process. See shmat. ADDR should be "undef" unless you really know what you're doing. shmdt( ADDR ) Detach the shared memory segment located at the address specified by ADDR from the address space of the calling process. See shmdt. memread( ADDR, VAR, POS, SIZE ) Reads SIZE bytes from a memory segment at ADDR starting at position POS. VAR must be a variable that will hold the data read. Returns true if successful, or false if there is an error. memread() taints the variable. memwrite( ADDR, STRING, POS, SIZE ) Writes SIZE bytes from STRING to a memory segment at ADDR starting at position POS. If STRING is too long, only SIZE bytes are used; if STRING is too short, nulls are written to fill out SIZE bytes. Returns true if successful, or false if there is an error. SEE ALSO
IPC::Msg, IPC::Semaphore, IPC::SharedMem, ftok, shmat, shmdt AUTHORS
Graham Barr <gbarr@pobox.com>, Jarkko Hietaniemi <jhi@iki.fi>, Marcus Holland-Moritz <mhx@cpan.org> COPYRIGHT
Version 2.x, Copyright (C) 2007-2010, Marcus Holland-Moritz. Version 1.x, Copyright (c) 1997, Graham Barr. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.16.3 2013-03-04 IPC::SysV(3pm)
All times are GMT -4. The time now is 01:02 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy