here is an output of my command and the problem is that my output string is truncated, I want to exact the full string, I am on BASH shell, please help me out.
Regards
Rahul
command with Output : ---------- Post updated at 02:30 PM ---------- Previous update was at 02:20 PM ----------
Just to add more information, here is my OS details:
SunOS 5.10 Last change: 9 Jan 2008 16
Regards
Rahul
Last edited by Franklin52; 09-09-2013 at 06:03 AM..
Reason: Please use code tags for data and code samples
Hi!
I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter.
A typical shell command line is:
PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ...
I used a combinaton of ps and grep commands... (1 Reply)
Hi!
I have some shell scripts receiving in input lots of parameters and I need to select the ones having a particular value in one parameter.
A typical shell command line is:
PROMPT > shell_name.ksh -avalue_a -bvalue_b -cvalue_c -dvalue_d ...
I used a combinaton of ps and grep commands... (5 Replies)
Hi
Problem of ps on Solaris 8 and 9
Perhaps a silly question but I can't find a solution.
the output of the command ps -ef is truncated.
I've tried to change the terminal settings with stty putting
a big number of colums: no change.
Following the man page of ps i have set the variable... (8 Replies)
OK, I'm stumped.
I have a shell script that reads a list, and for every item in the list performs a lookup in our Active Directory. Now, it seems that when I pipe the results into grep, the complete results are not there (truncated?). I'm not sure if this is a limit of the pipe, grep, shell... (1 Reply)
Hi Guys,
I have a master script file.
That calls the other script files. The sub script files append some of the data to the log file.
Once the master script completes one sub script execution and returns to execute other sub script that appends to the same log file. the log file gets... (2 Replies)
Hi, I am getting linking error
i.e.
/ade/aime_urtk/oracle/has/include/caa_ResStateListener.hxx:79: relocation truncated to fit: R_PPC_GO
T16 vtable for CAA::ResourceStateListener
/ade/aime_urtk/oracle/has/lib//libcaad.a(caa_Main.o)(.text+0x88e6): In function `CAA::ResourceStateL... (0 Replies)
Hi all,
I have used sed command with a file of size 7KB and stored the output to another file.
When i look into the output file, a few file lines at the bottom have got truncated. The sed statement i used is as below. Why does this happen and how to resolve this.
SQL=`sed... (3 Replies)
Hi,
I have Solaris-10 server. /usr/ucb/ps auxww is showing full path if I am running it from root. But if I run it from non-root user, its output is truncated. I don't want to use any other alternate command.
Please suggest, what can be its solution.
Terminal is set to term. (21 Replies)
Today I needed to take a look through a load of large backup files, so I wrote the following line to find them, order them by size, and print the file sizes in GB along with the filename. What happened was odd, the output was all as expected except for the first output line which had the filename... (4 Replies)
Discussion started by: gencon
4 Replies
LEARN ABOUT PHP
mb_strimwidth
MB_STRIMWIDTH(3) 1 MB_STRIMWIDTH(3)mb_strimwidth - Get truncated string with specified widthSYNOPSIS
string mb_strimwidth (string $str, int $start, int $width, [string $trimmarker = ""], [string $encoding = mb_internal_encoding()])
DESCRIPTION
Truncates string$str to specified $width.
PARAMETERS
o $str
- The string being decoded.
o $start
- The start position offset. Number of characters from the beginning of string. (First character is 0)
o $width
- The width of the desired trim.
o $trimmarker
- A string that is added to the end of string when string is truncated.
o $encoding
-The $encoding parameter is the character encoding. If it is omitted, the internal character encoding value will be used.
RETURN VALUES
The truncated string. If $trimmarker is set, $trimmarker is appended to the return value.
EXAMPLES
Example #1
mb_strimwidth(3) example
<?php
echo mb_strimwidth("Hello World", 0, 10, "...");
// outputs Hello W...
?>
SEE ALSO mb_strwidth(3), mb_internal_encoding(3).
PHP Documentation Group MB_STRIMWIDTH(3)