01-02-2006
unix seperator
there is somethign called as the UFI, the unique field identifier....
it is bydefault the <space> character....
change it to any single character in ur profile and you can change the seperator
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
can anyone tell me any way to change record separator (default is new line).
RS in nawk as not working.
Thanks in advance.
Regards
Rochit (7 Replies)
Discussion started by: rochitsharma
7 Replies
2. Shell Programming and Scripting
Hi,
Trying to represent a number with thousands separator in AWK:
echo 1 12 123 1234 12345 123456 1234567 | awk --re-interval '{print gensub(/(])(]{3})/,"\\1,\\2","g")}'
1 12 123 1,234 1,2345 1,23456 1,234567
any idea what is wrong here ? (11 Replies)
Discussion started by: ynixon
11 Replies
3. Shell Programming and Scripting
Following is the CSV file, separated by ","
100,sunil,$1,000,mumbai
101,amit,$10,000,mumbai
102,sailesh,$10,000,00,mumbai
I want the following output:
100,sunil,$1000,mumbai
101,amit,$10000,mumbai
102,sailesh,$1000000,mumbai
Note: I know the number of fields in the file in advance. In... (2 Replies)
Discussion started by: kolesunil
2 Replies
4. Shell Programming and Scripting
Hello all,
I'm trying to break down a file with the following format:
entries
dzdf
daff
enries
dfln
fnljfd
.
.
..
.
I'm reading this file, using "[" as my separator. It's working quite well, but I would like to be able to read the "[" character into my array as a valid... (4 Replies)
Discussion started by: Khoomfire
4 Replies
5. Shell Programming and Scripting
Hi
I have an input CSV file which contains some values
Format of file is as follows:
32R01000000003144476;32R01000000029054270;1000;6000;12/12/2007;0382521276;REG;Régulari
I just need to validate it whether it is ';' seperated ie (if any other seperator is used it shld give an error)
How do... (5 Replies)
Discussion started by: theeights
5 Replies
6. Shell Programming and Scripting
I have tried to use ">" as record separator, but it doesn't work.
I have tried this:
awk BEGIN{RS=">"}'{print $0}' input
output:
awk: BEGIN{RS=>}{print $0}
awk: ^ syntax error
awk BEGIN{RS="\>"}'{print $0}' input
awk: BEGIN{RS=\>}{print $0}
awk: ^ backslash not... (2 Replies)
Discussion started by: locoroco
2 Replies
7. Shell Programming and Scripting
Hi,
I have a flat file with fields separated by a X'1F'
i have to fetch 4th field from second line.
please help me how to achieve it.
I tried with below command and its not working.
cut -f4 -d`echo -e '\x1f'` filename.txt
I am using SunOS.
Thanks in advance. (2 Replies)
Discussion started by: rohan10k
2 Replies
8. Shell Programming and Scripting
Friends have the following code that is correct.
BEGIN { num_reg = 0
suma_iva=0
}
{
num_reg++
suma_iva=suma_iva+int(substr($0, 103,9))
}
END{
printf ("%011d",suma_iva)
}
I have the following problem, I have to do just that but this time... (4 Replies)
Discussion started by: tricampeon81
4 Replies
9. Shell Programming and Scripting
Hi
I am new to Unix Shell scripting have a requirement where I have to replace the "unix 1 byte delimiter" with the "pipe" separator and also remove any carriage returns and line feeds if any
The Source File
4 QFH Jungle Hill 32-34 City Road London SE23 3UX
the output should be ... (3 Replies)
Discussion started by: dJHa
3 Replies
10. Shell Programming and Scripting
Hello everybody, I'll get one more help
I have a cabundle file that I need to separate into 2 parts, the first sequence and the second sequence, I thought of several things but I did not remember anything that could actually accomplish this separation and transform into 2 variables, first... (4 Replies)
Discussion started by: c0i0t3
4 Replies
genufi(8) System Manager's Manual genufi(8)
NAME
genufi - Generates a User File Inventory (UFI) file
SYNOPSIS
/usr/bin/genufi
DESCRIPTION
The genufi utility creates a User File Inventory (UFI) file that contains the names of user files created or copied to your system after an
installation. Some of these files reside on file systems that are overwritten during a new installation of the operating system. You must
have superuser privileges to run the genufi utility, and you must invoke the genufi utility from the /usr/.smdb. directory.
To create the UFI file, the genufi utility checks the Master Synchronization Inventory (MSI) file created by the invsync utility to deter-
mine which file systems will be overwritten by a complete installation. The genufi utility searches those file systems for user files and
writes these entries to the UFI file. File systems that remain intact during a new installation of the operating system are not searched.
The genufi utility also filters out certain files and directories that would not commonly be considered for backup. For example, some log
files, installation files, and temporary directories do not need to be restored after a complete installation and are not written to the
UFI file.
The following directories are not included:
/tmp /tmp /usr/.smdb. /usr/sys/HOST /var/adm/smlogs /var/adm/syslog.dated /var/rwho /var/tmp
In the previous list, HOST represents the hostname of the system (such as /usr/sys/BLUTO) on the system named bluto.
The following files are not included:
*/core */*.dummy */.new.. /osf_boot */.profile */.proto.. /var/adm/binary.errlog /var/adm/xdm/xdm-pid */vmcore /*vmunix
Edit the UFI file to remove the entries for files and directories that you do not want to back up. The UFI file is written in the setld
inventory file format. Refer to the stl_inv(4) reference page for more information.
RESTRICTIONS
You must have superuser privileges to run the genufi utility.
You must invoke the genufi utility from the /usr/.smdb. directory.
FILES
Master Synchronization Inventory file User File Inventory file
SEE ALSO
ils(8), invsync(8), udelta(8), udetect(8), updmv(8), usync stl_inv(4)
genufi(8)