Hi,
i have a question about to remove first word from a sentence.
my script;
#!/usr/bin/perl
$msgtxt = "this is a test script";
my @ap_txtMsg = split(/ +/, trim_data($msgtxt));
$ap_msgtxt = splice (@ap_txtMsg, 0, 1);
print $ap_msgtxt;
but the output is first word that i... (1 Reply)
Hi All,
If my file is:
Wed Sep 9 22:45:14 EDT 2009
sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp> sftp>
This is log file generated from transfer...
sftp> sftp> sftp> sftp> Files placed properly....
sftp> sftp> sftp>
How can I remove "sftp>" word from this... (4 Replies)
Hi,
I have a file which has the following
/u12/data/oracle/abc.dbf
/u12/data/oracle/def.dbf
/u12/data/oracle/daf.dbf
/u12/data/oracledb/fgh.dbf
/u12/data/oracledb/fkh.dbf
/u12/data/oracledb/kdq.dbf
I want to do something like this
/u12/data/oracle
/u12/data/oracle... (7 Replies)
Hi,
I have gone through may posts and dint find exact solution for my requirement.
I have file which consists below data and same file have lot of other data.
<MAPPING DESCRIPTION ='' ISVALID ='YES' NAME='m_TASK_UPDATE' OBJECTVERSION ='1'>
<MAPPING DESCRIPTION ='' ISVALID ='NO'... (11 Replies)
Hello All,
I am running a command find . -name amp.cfg | cut -c 3- which gives me output something like below
rel/prod/amp.cfg
rel/fld/amp.cfg
deb/detail/amp.cfg
deb/err/amp.cfg I want to remove trailing "/amp.cfg" so that i should get output something like... (7 Replies)
Hi All,
I want to remove the first word "cn=" from the below details. Only I want the number like 171345,174144...
cn=171345
cn=174144
How can I achieve this.
Please suggest.
Thanks-
P (6 Replies)
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)
Hi,
I have a file which looks like this
id integer,
name string,
create_dt date,
I want to remove all words that are present before the character ,
My output should be
id,
name,
create_dt,
Thanks
wah (2 Replies)
hello.
How to remove first word from line. The line may or may not start with blank.
NEW_PARAM1=$(magic-command " -t --protocol=TCP -P 12345-u root -h localhost ")
NEW_PARAM2=$(magic-command "-t --protocol=TCP -P 12345 -u root -h localhost ")
I want NEW_PARAM1 equal to NEW_PARAM2 equal ... (2 Replies)
Discussion started by: jcdole
2 Replies
10. Post Here to Contact Site Administrators and Moderators
Hi Sir,
Need your help in removing the following words from the posts .
These are confidential info posted by mistake and our organization is doing an audit on this.
Could you kindly remove as per below.
https://www.unix.com/shell-programming-and-scripting/197017-perl-help.html
... (4 Replies)