06-09-2017
RudiC,
I am not a regular unix user and as and when I find interesting issues that my wife finds me to help her with, I try and fail and come and ask you folks.
You guys are keeping a very nice show out here in trying to help us folks.
Truly grateful for the help extended. !!!!
This User Gave Thanks to ManoharMa For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Let's say I have a word "foobar23" in a file, and I want to pull the first "f" and last "3" character out of the world, how would I accomplish that?
# cat file
foobar23
I want the output to be:
f3 (3 Replies)
Discussion started by: LinuxRacr
3 Replies
2. Shell Programming and Scripting
Hi All,
How to remove a box like special character which appears at the end of a string/line/record. I have no clue what this box like special character is. It is transparent square like box. This appears in a .DAT file at the end of header.
I'm to compare a value in header with a parameter.... (16 Replies)
Discussion started by: Qwerty123
16 Replies
3. Shell Programming and Scripting
hi
I have a list of words in a text file. these words are appended by "." at their end. They look something like this.
word1.
word2.
word3.
word4.
word5.
I need to remove the last character "." from all the words. The output must look something like this.
word1
word2
word3... (7 Replies)
Discussion started by: ss3944
7 Replies
4. Shell Programming and Scripting
Hi all,
Does anyone know how to code in ksh that will remove the first character in a string variable and replace that variable without the first character?
Example:
var1=ktest1 will become var1=test1
var2=rtest2 will become var2=test2
Need help please. (10 Replies)
Discussion started by: ryukishin_17
10 Replies
5. Shell Programming and Scripting
Hello,
The last character is a comma ,
I have tried the following:
sed -e 's/\,$//' filename-to-read
however - there are still commas at the end of each line...:confused: (5 Replies)
Discussion started by: learning
5 Replies
6. Shell Programming and Scripting
Hello!
Please bare with me, I'm a total newbie to scripting. Here's the sudo code of what I'm trying to do:
Get file name
Does file exist?
If true
get length of file name
get network id (this will be the last 3 numbers of the file name)
loop x 2
If... (1 Reply)
Discussion started by: KatieV
1 Replies
7. Shell Programming and Scripting
Hi there,
i need some help to remove all occurrences of a certain character at the beginning of a string.
Example: my string is 00102030 and i want to remove all zeros from beginning of string so the result is 102030 (3 Replies)
Discussion started by: gigagigosu
3 Replies
8. Shell Programming and Scripting
How can i remove the first and last character of strings like below:
"^^^613*"
"admt130"
"^^^613*"
"123456"
"adg8484"
"DQitYV09dh1C"
Means i wanna remove the quotes("").
Please help (17 Replies)
Discussion started by: proactiveaditya
17 Replies
9. Shell Programming and Scripting
In bash, how can one remove the last character of a string? In perl, the chop function would remove the last character. However, I do not know how to do the same job in bash.
Many thanks in advance. (12 Replies)
Discussion started by: LessNux
12 Replies
10. Shell Programming and Scripting
I am outputting a line like this
print $2 "/" $4The last character though is a ":" and I want to remove it. Is there any neat way to remove it? Or am I forced to do something like this:
print $2 "/" substr($4, 1, length($4) - 1)Thanks. (6 Replies)
Discussion started by: benalt
6 Replies
LEARN ABOUT DEBIAN
perl::critic::policy::documentation::requirepodatend
Perl::Critic::Policy::Documentation::RequirePodAtEnd(3pmUser Contributed Perl DocumentatiPerl::Critic::Policy::Documentation::RequirePodAtEnd(3pm)
NAME
Perl::Critic::Policy::Documentation::RequirePodAtEnd - All POD should be after "__END__".
AFFILIATION
This Policy is part of the core Perl::Critic distribution.
DESCRIPTION
Perl stops processing code when it sees an "__END__" statement. So, to save processing time, it's faster to put documentation after the
"__END__". Also, writing all the POD in one place usually leads to a more cohesive document, rather than being forced to follow the layout
of your code. This policy issues violations if any POD is found before an "__END__".
CONFIGURATION
This Policy is not configurable except for the standard options.
NOTES
Some folks like to use "=for", and "=begin", and "=end" tags to create block comments in-line with their code. Since those tags aren't
usually part of the documentation, this Policy does allows them to appear before the "__END__" statement.
=begin comments
frobulate()
Accepts: A list of things to frobulate
Returns: True if successful
=end comments
sub frobulate { ... }
AUTHOR
Chris Dolan <cdolan@cpan.org>
COPYRIGHT
Copyright (c) 2006-2011 Chris Dolan.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of this license
can be found in the LICENSE file included with this module
perl v5.14.2 2012-06-07 Perl::Critic::Policy::Documentation::RequirePodAtEnd(3pm)