10-04-2006
The Split comman is working but the output files which iam getting is in bytes format ,i need to conver these file from Byte fromat to .txt format
Is there any command in UNIX which performs this task
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
my description from another thread...
here's my code:
#!/bin/bash
IFS=$'\n'
function OutputName() {
input=$1
echo $input
input=`echo "$input" | sed -e 's/.//'`
input=`echo "$input".avi`
output_name=$input
}
if ]; then
echo... (5 Replies)
Discussion started by: TinCanFury
5 Replies
2. HP-UX
Just I gone with the script, I found some command's options which are not compatible with " HP-UX ".
If I found any alternate commands to the following, most probably I will solve the issue here.
1. " iostat -x " --> this command's option( x ) is not available in HP-UX... (2 Replies)
Discussion started by: pk_eee
2 Replies
3. Shell Programming and Scripting
Hi
I want the 'ls' command to display only the file size,date modified and name of the file.What i could see with different options is this:
$ls -got packagecount.csv
$-rwxrwxrwx 1 393137 Aug 21 14:46 packagecount.csv
Now what should be my possible... (4 Replies)
Discussion started by: sushovan
4 Replies
4. Shell Programming and Scripting
Hi,
I am working on a Linux machine.
I need to disable 2 options from the available 6 options of a command.
For eg. in the "ls" command we have various options like "l ,r, t, a, .... "
From this, I need to disable option "a"
So when the users type in "ls -a", they should get an error or... (4 Replies)
Discussion started by: aster007
4 Replies
5. UNIX for Dummies Questions & Answers
I'm reading about debugging aids in bash and have come across the set command. It says in my little book that an addition to typing
set
you can also use them "on the command line when running a script..." and it lists this in a small table:
set -o option Command Line... (5 Replies)
Discussion started by: Straitsfan
5 Replies
6. UNIX for Dummies Questions & Answers
How can i override options of rm command ??
and how can i implement my own options
when we delete file using rm commad it will not delete file it has to move some folder....plz suggest some solution. (10 Replies)
Discussion started by: arun508.gatike
10 Replies
7. Shell Programming and Scripting
Hi,
Just some questions on the script below...?
Given: bash-2.03$ command -a option1 name1 name2
ParseOptions()
{
local Len=${#@}
local Ctr=2 #always start at 2
local Name=()
local Iter=0
while ; do
if <- Is this correct? so I can get the $2... (2 Replies)
Discussion started by: h0ujun
2 Replies
8. Shell Programming and Scripting
Hi,
I have this command in a shell script and I can get it to echo ok, but when I try to execute the command I get a "file not found" error. Which is strange because, if I copy and paste the same command at the cli it works ok.
What am I doing wrong please? (16 Replies)
Discussion started by: bbbngowc
16 Replies
9. UNIX for Beginners Questions & Answers
Hi,
If I want to list files with names containing a certain letter like " a " using just one ls command, is there any way of doing that?
Note that it is containing a letter instead of one of the following (starting, ending with a letter or having the letter in between). what I want is to show... (1 Reply)
Discussion started by: AAAnni
1 Replies
pdtostd(1) General Commands Manual pdtostd(1)
NAME
pdtostd - Convert profiling data files to standard format
SYNOPSIS
pdtostd [-i] [-s] {[-a addrs] [-o outfile] infile}...
OPTIONS
Retain "int" sized (32-bit) sample counts instead of truncating to "short" sized (16-bit) counts, as in the uprofile -i command in DIGITAL
UNIX releases before V4.0. Split "int" sized (32-bit) sample counts into two "short" sized (16-bit) counts, so that default sample counts
collected by cc -p or cc -pg cover one instruction instead of two, as in DIGITAL UNIX releases before V4.0. If infile is a pixie-created
*.Counts file, then addrs is the name of a specific *.Addrs file to use. By default, pdtostd searches for a *.Addrs file in the location
where the pixie program created it. The named file must be a "profiling data file", as reported by the file(1) command, not a standard for-
mat *.Addrs file. Therefore, convert a *.Counts file before its *.Addrs file, unless using -o. The reformatted file is written to outfile
instead of overwriting infile. Each infile can be preceded by a -o option.
OPERANDS
The input file, which is a "profiling data file", as reported by the file(1) command, and was generated by a program instrumented or exe-
cuted by one of the following tools: (mon.out) (gmon.out) (kmon.out) (umon.out) (*.Addrs, *.Counts)
DESCRIPTION
The pdtostd command converts profiling data files from the format that the Tru64 UNIX profilers use into the older industry standard for-
mats. The converted files can then be processed by tools compiled with the <cmplrs/prof_header.h> or <sys/gprof.h> files.
The format of the profiling data files produced by Tru64 UNIX may be expanded in future releases, but Tru64 UNIX tools will continue to
support older formats. To write tools that process profiling data files, the pdtostd command lets you convert the Tru64 UNIX formats to the
older industry standard formats, where one exists.
The standard formats cannot accommodate the variety of data that is recorded in the "profiling data file" format, but instead they provide
the standard subset. The standard subset matches the format of the files output by the tools in DIGITAL UNIX systems before the V4.0
release.
For access to the full information in a Tru64 UNIX profiling data file, examine the file with the pddump(1) command, and process it with
the utilities in libpdf.a and <cmplrs/pdf.h>, skipping any new attributes, records, or fields that may appear.
EXAMPLES
Converts a V4.* default mon.out file to a pre-V4.0 default mon.out file, without overwriting the original. pdtostd -s -o mon.std mon.out
Converts pixie files, replacing the originals with the standard versions, even if the originals have been moved from the directory they
were created in. pdtostd -a example.Addrs example.Counts example.Addrs
FILES
Header file that defines the standard mon.out, kmon.out, and umon.out formats and the standard *.Addrs and *.Counts formats Header file
that defines the gmon.h standard format
SEE ALSO
Commands: atom(1), cc(1), file(1), kprofile(1), pddump(1), uprofile(1)
AtomTools: pixie(5)
Programmer's Guide
pdtostd(1)