Sponsored Content
Full Discussion: Weird behavior of Vi
Top Forums UNIX for Dummies Questions & Answers Weird behavior of Vi Post 302631735 by hypsis on Friday 27th of April 2012 08:39:51 PM
Old 04-27-2012
ok, I've checked numbering format. I didn't know decimal weren't the default, nor that 'octal numbers' existed for that matter. Even if I know that vi isn't famed for its user-friendliness, I have to say, I'm impressed.

I checked also the nl command. I cannot use it here - it's a very simplified version of what I intend to do - but I'll keep it in mind.

Many thanks
 

10 More Discussions You Might Find Interesting

1. Solaris

Weird behavior on a Sun Fire V120 running solaris 10.

All, After a power loss I went to power on our sun fire v120 that is running solaris 10 and now it will not boot. I tried power cycling it from the lom and pulling the cord but nothing works. All it does is after a power cycle it will start to boot and then start to spit out a bunch of hex... (2 Replies)
Discussion started by: jsandova
2 Replies

2. Shell Programming and Scripting

weird behavior of grep -P

I met a problem in using grep -P. There is a text file, temp.txt, whose content is: dddd abc I ran the command: grep -P "\s*abc" temp.txt The result I expected is: abc But, the actual result is: dddd abc Could anyone tell me what is wrong? Thanks. (2 Replies)
Discussion started by: pankai
2 Replies

3. OS X (Apple)

Weird rsync behavior

I use rsync to keep a directory in synchronization betwen a Linux box with the hostname brutal and a Mac running OS X 10.5 (Leopard) with the hostname cooper. When I run the following command on my Linux machine: rsync -avz --delete myuserid@cooper:/Library/WebServer/Documents... (2 Replies)
Discussion started by: scotbuff
2 Replies

4. UNIX for Dummies Questions & Answers

Weird Behavior of a Script

ok, there's a script i'm working on written in shell programming. #!/bin/sh this script is written to spit out the contents of certain variables inside of it so the output looks something like this: server01=89 server02=69 server03=89 server04=76 now, when i run this script from the... (4 Replies)
Discussion started by: SkySmart
4 Replies

5. UNIX for Dummies Questions & Answers

Weird home key behavior

Hi there, I'm using putty to connect to several servers. On every remote machine, the home key takes me at the beginning of a command line. Exept on one machine where a press on the home key outputs the tilde sign (~). Is there any place where I can override this behavior, I really prefer my... (6 Replies)
Discussion started by: chebarbudo
6 Replies

6. Shell Programming and Scripting

awk print behavior weird

Hi Experts I am facing a weird issue while using print statement in awk. I have a text file with 3 fields shown below: # cat f1 234,abc,1000 235,efg,2000 236,jih,3000 # When I print the third column alone, I dont face any issue as shown below: # awk '{print $3 }' FS=, f1 1000 2000... (5 Replies)
Discussion started by: guruprasadpr
5 Replies

7. UNIX for Dummies Questions & Answers

Weird behavior of backslash, please help!!

Hi I am getting absurd behavior of escape character in echos as followed:oinlcso003{arsadm} #: echo "\as shdd" \as shdd oinlcso003{arsadm} #: echo "Well, isn't that \"special\"?" Well, isn't that "special"? oinlcso003{arsadm} #: echo "Well, isn't that \special\?" Well, isn't that \special\?... (3 Replies)
Discussion started by: nixhead
3 Replies

8. UNIX and Linux Applications

weird yum behavior with provides and install

Why could whatprovides not lookup this info for over 10 minutes, but install could install that package in less than a minute? $ yum whatprovides */lsb_release Loaded plugins: langpacks, presto, refresh-packagekit, versionlock ^Cupdates/group 18% 3.1 kB/s | 360 kB 08:28 ETA ... (0 Replies)
Discussion started by: cokedude
0 Replies

9. UNIX for Advanced & Expert Users

Weird TR behavior. Replacing two instance

Can someone please explain what's wrong with the command i use below? tr -c '\11\12\40-\176' ' '< $TEMP_FILE > $TEMP_FILE2 The invalid character/s is replaced with two spaces, the string2 only have 1 space in it. Please help. Sample output: 333243,333244c333243,333244 < ... (1 Reply)
Discussion started by: Jin_
1 Replies

10. Shell Programming and Scripting

Commenting out "expr" creates weird behavior

This really puzzles me. The following code gives me the error 'expr: syntax error' when I try to do multi-line comment using here document <<EOF echo "Sum is: `expr $1 + $2`" EOF Even if I explicitly comment out the line containing the expr using "#", the error message would still exist... (3 Replies)
Discussion started by: royalibrahim
3 Replies
REZ(1)							      General Commands Manual							    REZ(1)

NAME
Rez - compiles resources SYNOPSIS
Rez [ rezFile1 ] [ rezFile2 ] ... [ -align word | longword ] [ -a[ppend] ] [ -arch architecture ] [ -c[reator] creatorExpr ] [ -d[efine] macro [ = data ] ] [ -i directoryPath ] [ -F frameworkDirectoryPath ] [ -is[ysroot] sdkPath ] [ [ -m[odification] ] [ -noResolve [ output | include ] ] [ -o outputFile ] [ -ov ] [ -p[rogress] ] [ -rd ] [ -ro ] [ -s directoryPath ] [ -script Roman | Japanese | Korean | SimpChinese | TradChinese ] [ -t[ype] typeExpr ] [ -u[ndef] macro ] [ -useDF ] DESCRIPTION
The Rez tool compiles the resource fork of a file according to the textual description contained in the resource description files. These resource description files must contain both the type declarations and the resource definitions needed to compile the resources. This data can come directly from the resource description files, as in this example: Rez -F Carbon Carbon.r myResource.r The data can also come from other text files that are included in resource description files using #include and read directives. For example, myResource.r could use #include to include the Carbon.r file. INPUT
Standard input, unless you specify one or more resource description files. OUTPUT
Normally Rez writes the resource fork to the file Rez.out. You can specify a different output file by using the -o option. Errors and warnings are written to diagnostic output. The Rez tool does not write to standard output. ALIAS RESOLUTION
This command resolves Finder aliases in all input and output file specifications. This includes input source files, listing files, output object files, paths specified with the -i and -s options, and paths specified within source code using INCLUDE or #include statements. This behavior may be changed for resource files by using the -noResolve option. STATUS
Rez can return the following status codes: 0 no errors 1 error in parameters 2 syntax error in resource description file 3 I/O or program error Note If any errors are detected, Rez sets the output file's modification date to 0, which is January 1, 1904, 12:00 A.M. PARAMETERS
rezFile1 [ rezFile2 ] ... Specifies one or more resource description files that contain type declarations and resource definitions. Typically this pairs a file containing only resource definitions with another containing only type declarations. The type declarations for the standard Macintosh resources are contained in the MacTypes.r file in the CarbonCore framework. You can also specify resource description files by using #include. For example, a file containing only resource definitions could include those containing the appropriate type declarations (for example, myResource.r could include <Carbon/MacTypes.r>). In addition, you can also include resource files that have already been compiled by Rez include directive. The -script option enables Rez to correctly process the 2- byte character sets for foreign-language script systems. OPTIONS
-align word | longword Aligns resources along word or longword boundaries. This allows the Resource Manager to load these resources faster. The Rez tool ignores this option if you use -a[ppend]. -a[ppend] Appends new resources to the output file rather than replacing the output file. Note The Rez tool cannot append resources to a resource file that has its read-only bit set. It also cannot replace a resource that has its protected bit set unless you specify -ov. WARNING The Rez tool overwrites any existing resource of the same type and ID without any warning message. -arch architecture A synonym for -d __architecture__ If no -arch arguments are provided, Rez automatically adds one for the current system's architecture. -c[reator] creatorExpr Sets the output file creator. (The default value is '????'.) Note that creatorExpr is a Rez expression such as -c "3*200+5" If the creator begins with a letter and does not contain any spaces or special characters, you can simply type it in, as in this example: -c APPL Otherwise, you must format the creator as a numeric expression or as a literal expression such as -c " '@@@@' " -d[efine] macro [= data ] Defines the macro variable macro as having the value data. You can use this option more than once on a command line. macro Specifies the macro variable to be defined. data Specifies the value of macro. This is the same as writing #define macro [data] at the beginning of the input. If you do not specify data, Rez sets the value of data to the null string. Note that this still defines the macro. -i directoryPath Directs Rez to search this directory for #include files. You can specify this option more than once. The Rez tool searches directories in the order in which they appear on the command line. -F frameworkDirectoryPath Directs Rez to search this directory for frameworks referred to by framework-style #include references (e.g. <Carbon/Carbon.r>.) By default, Rez only searches the /System/Library/Frameworks directory; using this option you can specify other directories to be searched. You can specify this option more than once. The Rez tool searches directories in the order in which they appear on the command line. -is[ysroot] sdkPath Directs Rez to search for included files and frameworks in the designated SDK. If omitted, the system root ("/") is assumed. -m[odification] Does not change the output file's modification date. If an error occurs, the output file's modification date is set to zero, even if you use this option. A date of 0 means January 1, 1904, 12:00 A.M. -noResolve [output|include] Overrides the default alias resolution behavior by not resolving leaf aliases in the output resource file specification or in any included resource input files. output If output is specified, Rez overrides the default Finder alias resolution behavior by not resolving leaf aliases in the output resource file specification. This allows you to modify a Finder alias file directly. include If include is specified with -noResolve then Rez overrides the default Finder alias resolution behavior by not resolving leaf aliases in any included resource input files. This allows you to include resources directly from Finder alias files. -o outputFile Places output in the specified output file. The default output file is Rez.out. -ov Overrides the protected bit when replacing resources with -a[ppend]. -p[rogress] Writes version and progress information to diagnostic output. -rd Suppresses warning messages for redeclared resource types. -ro Sets the mapReadOnly flag in the resource map. -s directoryPath Directs Rez to search this directory for resource include files. You can specify this option more than once. The Rez tool searches directories in the order in which they appear on the command line. -script Roman | Japanese | Korean | SimpChinese | TradChinese Enables the recognition of any of several 2-byte character script systems to use when compiling and decompiling files. This option insures that 2-byte characters in strings are handled as indivisible entities. The default language is Roman and specifies 1-byte character sets. -t[ype] typeExpr Sets the type of the output file (the default is 'APPL'). Note that typeExpr is a Rez expression, such as -t "3*200+5" If the type begins with a letter and does not contain any spaces or special characters, you can simply type it in, as in this example: -t MPST Otherwise, you must format it as a numeric expression or literal expression, such as -t " '@@@@' " -u[ndef] macro Undefines the preset macro variable This is the same as writing #undef macro at the beginning of the input. This option can be repeated more than once on a command line. -useDF Reads and writes resource information from the files' data forks, instead of their resource forks. EXAMPLES
The following command line generates a resource fork for the file Sample, based on the type declarations and resource definitions in Types.r and Sample.r: Rez Types.r Sample.r -o Sample SEE ALSO
DeRez Mac OS X July 25, 2000 REZ(1)
All times are GMT -4. The time now is 08:27 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy