Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Convert 512-blocks to 4k blocks Post 302442236 by Corona688 on Tuesday 3rd of August 2010 06:09:10 PM
Old 08-03-2010
Divide by eight.
 

9 More Discussions You Might Find Interesting

1. AIX

bosboot: Boot image is 22995 512 byte blocks.

My mksysb scripts gives the following text on standard error: bosboot: Boot image is 22995 512 byte blocks. How come on a Aix 5200-07 aix-system. I thought this message meant that the tape (/dev/rmt0) is not bootable, but I read about a limit of 12 MB and 22995 block is less than 12 MB ... (0 Replies)
Discussion started by: frankwiel
0 Replies

2. Shell Programming and Scripting

How to read text in blocks

Hi, I have file which contains information written in blocks (every block is different). Is it possible to read every block one by one to another file (one block per file). The input is something like this <block1> <empty line> <block2> <empty line> ... ... ... <block25> <empty... (0 Replies)
Discussion started by: art84_)LV
0 Replies

3. Shell Programming and Scripting

Removing blocks from a file

I have a file like the one below. Each record is separated with > In between I have lines consisting of 3 numeric values separated by a space. I need to take each block between the > sign and read the first number in the line. Then take the first after the > sign and the last before the >... (7 Replies)
Discussion started by: kristinu
7 Replies

4. Shell Programming and Scripting

Help with Script using Command Blocks

Hello, I am trying to create a shell script that use command block (donīt really know if this is the correct way to say it), but while one version works fine, the other one is not working at all. So let me show an example of this "command block" Iīm using and its working ok: cat << _EOF_ `echo... (7 Replies)
Discussion started by: Alexis Duarte
7 Replies

5. Shell Programming and Scripting

how to split this file into blocks and then send these blocks as input to the tool called Yices?

Hello, I have a file like this: FILE.TXT: (define argc :: int) (assert ( > argc 1)) (assert ( = argc 1)) <check> # (define c :: float) (assert ( > c 0)) (assert ( = c 0)) <check> # now, i want to separate each block('#' is the delimeter), make them separate files, and then send them as... (5 Replies)
Discussion started by: paramad
5 Replies

6. UNIX for Dummies Questions & Answers

Duplicate blocks in an inode

I have 2 duplicate blocks in an inode and I want to get rid of one of them so that I can get into my pc. The message I get is Multiply-claimed block(s) in inode 5997500: 12690101 12690101. All help is appreciated. Thanks (7 Replies)
Discussion started by: Nighttrain
7 Replies

7. Shell Programming and Scripting

Transpose info that is within blocks

Hello to all in forum, I have a big file with blocks of data. Each block begins with "BeginOfRecord".... (17 Replies)
Discussion started by: Ophiuchus
17 Replies

8. Shell Programming and Scripting

Row blocks to column blocks

Hello, Searched for a while and found some "line-to-column" script. My case is similar but with multiple fields each row: S02 Length Per S02 7043 3.864 S02 54477 29.89 S02 104841 57.52 S03 Length Per S03 1150 0.835 S03 1321 0.96 S03 ... (9 Replies)
Discussion started by: yifangt
9 Replies

9. Shell Programming and Scripting

Blocks into table

please help, I have a huge file with blocks of data which I need to convert to a tabular format. Input sample id: GO:0000017 name: alpha-glucoside transport namespace: biological_process def: "The directed movement of alpha-glucosides into, out of or within a cell, or between... (3 Replies)
Discussion started by: ritakadm
3 Replies
IC(1)							      General Commands Manual							     IC(1)

NAME
ic - integer calculator SYNOPSIS
ic [expression] EXAMPLES
ic # Start the calculator ic 250 300+ # Start calculator with 550 on the stack DESCRIPTION
Ic is a simple RPN (Reverse Polish Notation) calculator, used for small calculations and base conversions. All calculations are done using 32 bit integers. The standard input is usually a keyboard and the standard output requires a device with a 'termcap' entry. The program starts by interpreting any <args> as commands, where the separation between arguments is considered to be the same as the ENTER key. For example, "ic 692 784+ After reading the arguments input is from the keyboard. Stack Operations The operation of this program is similar to an RPN calculator. A six level stack is used. The ENTER key pushes the stack up one level. For example, '12+5' is entered as '12 ENTER 5 +". The top two entries on the stack are exchanged by the x command, and the stack is rolled down one (popped) by the p key. The top of the stack may be cleared by pressing the back-space key. The whole stack and the registers are initialized by a z. Numeric Entry The input and output bases are initially decimal, but they may be changed using the i and o commands. The i command changes both bases, but the o command changes just the output base. These commands take a one character argument of h, d, o or b to change to Hexadecimal, Deci- mal, Octal or Binary. While the input base is hexadecimal the letters a through f are used to represent the decimal values 10 through 15. When the input base is decimal: multiply, divide and remainder are signed, otherwise they are performed unsigned. The output base may also be changed to ASCII (a), this causes the least significant 7 bits of a value to be displayed as a character. To input an ASCII value the translate (t) command may be used, it accepts one character as its argument. Calculations The arithmetic operations supported are: Negate ('.'), Add ('+'), Subtract ('-'), Multiply ('*'), Divide ('/'), and Remainder ('%'). The logical (Boolean) operations available are: NOT ('~'), AND ('&'), OR ('|'), and EXCLUSIVE-OR ('^'). After one of these operations the last top of stack value is saved. It may be restored by pressing l (L). Saving Results Ten temporary registers are available. The Store (s) command followed by a digit ('0'..'9') will copy the top of the stack to the specified register. The Recall (r) command pushes the contents of a register onto the top of the stack. If the Store command is followed by a '+' preceding the digit, then the top of the stack will be added to the specified 'accumulator' reg- ister. Values may also be written to a file. The w command writes the top of the stack, using the current output base, to a file called 'pad' in the current directory. If the user does not have write access to the current directory then the file /tmp/pad_$USER is used as the scratch pad. The scratch pad file is erased on the first use of the w command within each new invocation of 'ic'. Miscellaneous The Quit (q) key causes an immediate exit. The m command temporarily leaves ic by invoking the shell as a sub-process. For help while using ic, hit the h key. If an erroneous key is pressed the bell will sound. Command Summary Note that many commands have an alternative key-code available on the extended AT keyboard. This aids entry by including most commands on the right side of the keyboard. ENTER Enter (push up) BS (DEL) Clear top of stack h Help i Input base (h, d, o, b) l (PGDN) Last top of stack m MINIX shell o Output base (h, d, o, b, a) p (DOWN) Pop stack (roll down) q (END) Quit r (LEFT) Recall (0-9) s (RIGHT) Store [+] (0-9) t Translate (char) w (PGUP) Write top of stack to scratch pad x (UP) Exchange top of stack z (HOME) Zero all state . Change sign + (+) Add - (-) Subtract * Multiply / Divide % (sh/5) Remainder (tilde) Not & And | Or ^ Exclusive-or Author Ic was written by Terrence W. Holm. IC(1)
All times are GMT -4. The time now is 12:43 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy