Sponsored Content
Top Forums Shell Programming and Scripting Convert UNIX rights in a number in a sh script Post 302941107 by steiner on Monday 13th of April 2015 07:46:13 AM
Old 04-13-2015
Convert

Hello,

thanks for your feedback.

I'm working on Unix on AIX on an sh script.

Thanks
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

C Shell Script to convert a number into minutes

Could anyone tell me how to write a C shell script according to the following requirement. Write a C shell script convertmin which will read in a number, thought of as representing minutes, and print out the number of hours/minutes it represents so: Note: you are required to check exception... (1 Reply)
Discussion started by: Ringo
1 Replies

2. SuSE

UNIX - Linux NFS Rights need Help

Hello, I am running a Suse Linux server and I want to set up a NFS Server for a few Unix machines. For the root account at the unix client it works fine but it doesn't work for other users who have no root rights. I've used the no_root_squash and the rw option in the etc/export file. My folder... (7 Replies)
Discussion started by: Ald-Edv
7 Replies

3. Shell Programming and Scripting

how to convert unix .ksh script to windows .batch script

I am using awk in my .ksh script but when I am trying to run in windows its not recognising awk part of the ksh script , even when I changed it to gawk it does not work, this is how my .ksh and .bat files look like. thanx. #!/bin/ksh egrep -v "Rpt 038|PM$|Parameters:|Begin |Date: |End... (1 Reply)
Discussion started by: 2.5lt V8
1 Replies

4. UNIX for Dummies Questions & Answers

Unix access rights

Hi, Is it true that if I am not the root I can not select access permissions to a file that I own so that my friend (who also isn't the root) can access that file? And is it true that the only way to accomplish it is to ask the root to "put" my friend into "my" group? Then I could simply set... (1 Reply)
Discussion started by: rudo
1 Replies

5. Shell Programming and Scripting

convert unix script to perl

Hi, I have these lines in a unix script: FILEONE = /<filepath1>/<filename1.txt> FILENEW = /<filepath2>/<filename2.txt> head -5 $FILEONE | sed '1d' > $FILENEW PARAM1 = `cat $FILENEW | awk '{print $2;}' ` echo "Param1 Value: $PARAM1" What's the correct syntax of the above lines if same... (2 Replies)
Discussion started by: gholdbhurg
2 Replies

6. Shell Programming and Scripting

need script to convert number in hexadecimal

hi , i need a script to convert number into hexadecimal base for example: 237=>ED it s very important for me thank you in advance for you help (5 Replies)
Discussion started by: mips
5 Replies

7. Shell Programming and Scripting

Convert unix script in to php

Hi All, I have one shell script and like to convert into GUI for user creation..Any way to convert shell script into php? Please find the below for my script. $ more user.sh #!/bin/ksh set -x pwfile="/etc/passwd" shadowfile="/etc/shadow" gfile="/etc/group" ######Want to check... (0 Replies)
Discussion started by: susindram
0 Replies

8. UNIX for Dummies Questions & Answers

Question about UNIX file rights

Hello experts, i am a Unix beginner and to test the rules of file rights (rwx) i created the file /root/testdir/subdir/test.sh and set the rights of testdir,subdir, test.sh (using chmod) to various configurations in order to get an idea in which case you need which rights. Test commands... (5 Replies)
Discussion started by: mike_bn
5 Replies

9. Shell Programming and Scripting

Need a script for automation the convert a lot number audio files to another format

I have a lot number audio files in the MP3 proprietary format, I want to convert them to 'opus' the free and higher quality format, with keep metadata also. My selection command-line programs are SoX (Sound eXchange) for convert MP3 files to 'AIFF' format in order to keep quality and metadata*... (1 Reply)
Discussion started by: temp-usr
1 Replies

10. UNIX for Beginners Questions & Answers

Convert ascii character values to number that comes between the numbers in UNIX

I have variable that contains multiple values of number and also include overpunch(i.e. # $ % etc) character so we want to replace it with numbers. here are the example: Code: 11500#.0# 28575$.5$ 527#.7# 42".2" 2794 .4 2279!.9! 1067&.7& 926#.6# 2279!.9! 885".5" 11714$.4$ 27361'.1'... (1 Reply)
Discussion started by: nadeemrafikhan
1 Replies
feedback(1)						      General Commands Manual						       feedback(1)

NAME
feedback - Generate an optimization feedback file using pixie and prof SYNOPSIS
feedback [prof-options] [-o feedback-file] [-v] objfile [objfile-arguments] OPTIONS
The feedback command accepts the following prof(1) options and any unambiguous abbreviations: -asm, -clock megahertz, -{e|E}xclude proce- dure_name, -feedback filename, -heavy, -invocations, -lines, -merge filename, -numbers, -{o|O}nly procedure_name, -procedures, -quit n, -testcoverage, -truecycles [0,1,2], -zero. The feedback command ignores all other options in order to provide compatiblility with older versions of the feedback command. An option argument following an option not recognized by this or older versions of the feedback command will be treated as the objfile argument. Specifies the name of the feedback file. This can also be specified by the -feedback option of prof. You should use only one of these options to specify a feedback file, not both. Causes the pixie, application, and prof commands to be printed as they are invoked. OPERANDS
Specifies the executable of the application for which a feedback file is to be generated. A pixie-instrumented version of this executable will be executed with the current working directory and environment variables. The feedback file that is generated will reflect the behav- ior of one execution of the instrumented objfile. Specify the arguments that will cause the behavior that you want to have optimized when the compiler uses the feedback file. DESCRIPTION
The feedback command invokes pixie to add profiling code to an object file. The object file generated by pixie is executed to obtain pro- filing information. The feedback command then invokes prof to analyze the profiling information. If the output of objfile needs to be redirected, but not the output of the feedback utility, the redirection characters need to have sh(1) syntax and be within quotes. If objfile is multi-threaded, the LD_LIBRARY_PATH environment variable needs to include the current working directory. EXAMPLES
Send the profiling information to the standard output: $ feedback myprog Write a binary formatted performance profile to the file myprog.feedback, which then helps a subsequent recompilation optimize the program: $ feedback -feedback myprog.feedback myprog $ cc -O -feedback myprog.feedback -o myprog myprog.c FILES
Object with profiling code. Generated by pixie. Basic block addresses. Generated by pixie. Basic block counts. Generated by myprog.pixie. Note: Run pixie and prof independently if alternative names are needed. SEE ALSO
cc(1), pixie(5), prof(1) feedback(1)
All times are GMT -4. The time now is 03:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy