08-03-2009
Hi Anchal,
I used nawk and was getting the below error:
nawk: syntax error at source line 1
context is
>>> = <<<
nawk: bailing out at source line 1
Thanks,
Shazin
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi All,
I am using the below scrit to insert lines in a file:
#!/bin/ksh
# To delete the last line if it contains the pattern Redirect permanent / Virgin Atlantic Airways - Popup
echo "Enter the URL that should point to the particular microsite"
read url
# To delete the last line if it... (2 Replies)
Discussion started by: Shazin
2 Replies
2. Shell Programming and Scripting
Hi Everyone,
# cat 1
#!/usr/bin/perl
print "c\tc\t\n";
# cat 2
#!/usr/bin/perl
print "b\tb\t\n";
print "b\tb\t\n";
print "b\tb\t\n";
# perl 1 > 11
# perl 2 > 22
# cat 11
c c
# cat 22
b b
b b
b b
# paste 11 22 (5 Replies)
Discussion started by: jimmy_y
5 Replies
3. Shell Programming and Scripting
Hi Friends,
For daily reports i make perl script like below.
@dirlist = `cat out.txt |cut -d "|" -f1 >create.txt`;
@dirlist1 = `cat out.txt|wc -l *e* >create2.txt`;
open FILE, ">OUTPUT.txt";
@command = `cat out.txt |cut -d "|" -f1`; print FILE map{$_-2 ."\n"}@command;
@dirlist2 =... (1 Reply)
Discussion started by: adaleru
1 Replies
4. Shell Programming and Scripting
Hi Guys,
I hope you are doing good out there.
I am facing some issues in the alligment of the output of a shell script.
Below is the statement which is formatting the output:echo $File | awk -F '' '{print $13,$15="\t"$16,$4="",$5,$6,$7}'
and its output is Domain Log file ... (2 Replies)
Discussion started by: singh.chandan18
2 Replies
5. Shell Programming and Scripting
Experts Good day,
I have the following data, file1
BRAAGRP1
A2X
B2X
C2X
D2X
BRBGRP12
A3X
B3X
Z10
D09
BRC1GRP2
LO01 (4 Replies)
Discussion started by: rveri
4 Replies
6. Shell Programming and Scripting
Guys,
I have a requirement as below
36%/
55%/var
82%/tmp
74%/opt
now i want the output to be
---------------------------------
Disk% Mount
---------------------------------
36% /
55% var
82% tmp
74% opt
----------------------------------------
I have used... (3 Replies)
Discussion started by: AraR87
3 Replies
LEARN ABOUT OPENSOLARIS
ucblinks
ucblinks(1B) SunOS/BSD Compatibility Package Commands ucblinks(1B)
NAME
ucblinks - adds /dev entries to give SunOS 4.x compatible names to SunOS 5.x devices
SYNOPSIS
/usr/ucb/ucblinks [-e rulebase] [-r rootdir]
DESCRIPTION
ucblinks creates symbolic links under the /dev directory for devices whose SunOS 5.x names differ from their SunOS 4.x names. Where possi-
ble, these symbolic links point to the device's SunOS 5.x name rather than to the actual /devices entry.
ucblinks does not remove unneeded compatibility links; these must be removed by hand.
ucblinks should be called each time the system is reconfiguration-booted, after any new SunOS 5.x links that are needed have been created,
since the reconfiguration may have resulted in more compatibility names being needed.
In releases prior to SunOS 5.4, ucblinks used a nawk rule-base to construct the SunOS 4.x compatible names. ucblinks no longer uses nawk
for the default operation, although nawk rule-bases can still be specifed with the -e option. The nawk rule-base equivalent to the SunOS
5.4 default operation can be found in /usr/ucblib/ucblinks.awk.
OPTIONS
-e rulebase Specify rulebase as the file containing nawk(1) pattern-action statements.
-r rootdir Specify rootdir as the directory under which dev and devices will be found, rather than the standard root directory /.
FILES
/usr/ucblib/ucblinks.awk sample rule-base for compatibility links
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
devlinks(1M), disks(1M), ports(1M), tapes(1M), attributes(5)
SunOS 5.11 13 Apr 1994 ucblinks(1B)