Sponsored Content
Top Forums Shell Programming and Scripting Convert Char to Dec using AWK Post 74320 by jasmine05 on Thursday 9th of June 2005 03:50:08 AM
Old 06-09-2005
ok i get it.
TQ.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

how to convert char to num

how to convert char to num or visa versa i am a beginner how to do it can someone guide me please (2 Replies)
Discussion started by: guhas
2 Replies

2. Shell Programming and Scripting

Substitution of char with AWK

I created a file contains: create table .....; create index ....; create trigger...; and I want to substitue from my file ; by ;-- from the line where appears create trigger to the end of the file and keep intact the create table step and index in the file. awk '/CREATE... (2 Replies)
Discussion started by: mario dionne
2 Replies

3. Shell Programming and Scripting

How to Convert Hex value to Dec ?

Hi All, I want to convert below Hex value to Dec value in each column .How to do it ? This data is in a 1 file. 4e20 0475 2710 010f 7530 69a2 7530 7e2f 4e20 02dd 7530 6299 4e20 0c0a 7530 69a2 4e20 0a0b 2710 0048 7530 7955 4e20 0d23 7530 622d 7530 9121 2710 001f 7530 7d3f (6 Replies)
Discussion started by: Nayanajith
6 Replies

4. Shell Programming and Scripting

need to convert a decimal value to an ascii char with awk for the field delimiter

Hello, I need an awk script to receive a variable that's an decimal value such as 009 or 031 and then convert this value to an ascii character to use as the FS (field separator for the input file). For example, 009 should be converted to an ascii tab 031 should be converted to an ascii... (1 Reply)
Discussion started by: script_op2a
1 Replies

5. Shell Programming and Scripting

can I remove the first char using AWK?

Hi everyone, suppose that I have the following line: #test your knowledge can I use AWK to print the word "test" only? without the #? what should I change to this: awk '{print $1}' thanks in advance guys (2 Replies)
Discussion started by: Abdulelah
2 Replies

6. Programming

AWK char '

Is it possibile to change char ' to another with awk? (2 Replies)
Discussion started by: MSMario
2 Replies

7. UNIX for Dummies Questions & Answers

AWK - changing first char from small to upper

I need to write script in AWK, changing first char from a line from lower to upper. I found function toupper etc. but have no idea how to sent only first char from every line instead of the whole line. Anyone has any idea? // Sorry for my english:D (8 Replies)
Discussion started by: bbqtoss
8 Replies

8. Shell Programming and Scripting

Awk, function of underscore char.

Hello Friends, I would appreciate so much if you could explain how the underscores works at the following code? Sorry if it sounds a bit novice question. awk -F',' 'NR==FNR{_=1;next}!_{print}' exclude infile KR, Eagle (6 Replies)
Discussion started by: EAGL€
6 Replies

9. Shell Programming and Scripting

awk pad 1 column with leading zero if char > 12

Hello, I got a question. I have several csv files with lots of data in it and for the first column i have EAN codes. The problem that i am facing is that some of these codes have the leading 0 removed so they are 12 or less chars while a EAN code is (always?) 13 chars. For this i used a... (9 Replies)
Discussion started by: SDohmen
9 Replies

10. UNIX for Beginners Questions & Answers

How to convert dec to hex in python?

When I try to convert big numbers I get extra numbers at the end that doesn't move plus an L character too. How to remove the 4 extra characters at the end 000L? 8b8dbbc584d9c000L 8b8dc4ddd34c6000L 8b8dcdf621bf0000L 8b8dd70e7031a000L 8b8de026bea44000L #!/usr/bin/python ... (9 Replies)
Discussion started by: bigvito19
9 Replies
MOUNT_KERNFS(8) 					    BSD System Manager's Manual 					   MOUNT_KERNFS(8)

NAME
mount_kernfs -- mount the /kern file system SYNOPSIS
mount_kernfs [-o options] /kern mount_point DESCRIPTION
The mount_kernfs command attaches an instance of the kernel parameter namespace to the global filesystem namespace. The conventional mount point is /kern. The directory specified by mount_point is converted to an absolute path before use. This command is normally executed by mount(8) at boot time. The filesystem includes several regular files which can be read, some of which can also be written. The contents of the files is in a machine-independent format, either a string, or an integer in decimal ASCII. Where numbers are returned, a trailing newline character is also added. The options are as follows: -o Options are specified with a -o flag followed by a comma separated string of options. See the mount(8) man page for possible options and their meanings. FILES
boottime the time at which the system was last booted (decimal ASCII). copyright kernel copyright message. hostname the hostname, with a trailing newline. The hostname can be changed by writing to this file. A trailing newline will be stripped from the hostname being written. hz the frequency of the system clock (decimal ASCII). ipsecsa the directory that contains IPsec security associations (SA) in PF_KEY format. Filenames are SPI in decimal number. The content of files can be inspected by using setkey(8). ipsecsp the directory that contains IPsec security policies in PF_KEY format. Filenames are security policy ID in decimal number. The content of files can be inspected by using setkey(8). loadavg the 1, 5 and 15 minute load average in kernel fixed-point format. The final integer is the fix-point scaling factor. All numbers are in decimal ASCII. msgbuf the kernel message buffer, also read by syslogd(8), through the log device, and by dmesg(8). pagesize the machine pagesize (decimal ASCII). physmem the number of pages of physical memory in the machine (decimal ASCII). rootdev the root device. rrootdev the raw root device. time the second and microsecond value of the system clock. Both numbers are in decimal ASCII. version the kernel version string. The head line for /etc/motd can be generated by running: ``sed 1q /kern/version'' SEE ALSO
mount(2), unmount(2), ipsec(4), fstab(5), dmesg(8), mount(8), setkey(8), syslogd(8) HISTORY
The mount_kernfs utility first appeared in 4.4BSD. BUGS
This filesystem may not be NFS-exported. lkm(4) version does not support IPsec-related files/directories. BSD
September 8, 2003 BSD
All times are GMT -4. The time now is 05:11 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy