Hi All,
I have written the below code to know the current curser position. The problem with this code is - it gives me window size properly but whn it comes to current curser position then it gives (0,0) as x,y co-ordinate eventhough my curser is somewhere middle on command line interface.
... (0 Replies)
Hi Guys,
I need to set the value of $7 to zero in case $7 is NULL. I've tried the below command but doesn't work. Any ideas. thanks guys.
MEM=`ps v $PPID| grep -i db2 | grep -v grep| awk '{ if ( $7 ~ " " ) { print 0 } else { print $7}}' `
Harby. (4 Replies)
In VI editor ctrl + g is used indicate the line number on which the cursor is placed...similarly is there a way to determine the column number of the cursor position..? (1 Reply)
I have a file like this..
Maharastra Mumbai worli
Maharastra Mumbai navy
maharatra Pune
Maharastra Nagpur
Karnataka Bangalore
Karnataka Mysore
Karnataka Mangalore
Punjab Amritsar
punjab Jalandar
my expected outcome should be like this
Maharastra Mumbai worli
---------- ... (9 Replies)
Hi
I have a input file :::
1583904589034853904
1690234849023849023
159823890238409
1690238490238490238490
.
.
.
The output file should have the record 16 appended to the record 15 and a variable should be added at a FIXED POSTION at 55.
The records are been processed inside a loop... (3 Replies)
Hi Friends thanks a lot....for ur replies its worked fine...i have one more question..
if i need to remove trailor (T000000004 ) as shown below file also with header.Plz help thanks
Source file:
H20100928
D04041201609360677PC790010384I
D04041203326357853PC790010645R ... (1 Reply)
Hi,
I have a string like the following:
/db1/data/GLIDER/SYSTEM.dbf
need to find the postion where "SYSTEM.dbf" starts, so I tried:
LOCATION=/db1/data/GLIDER/SYSTEM.dbf
$ expr index $LOCATION SYSTEM
expr: syntax error
$ expr index "$LOCATION" SYSTEM
expr: syntax error
... (5 Replies)
I have write a script which contains
ssh -p 12345 dcplatform@10.125.42.50
ssh 127.0.0.1 -p 5555 "$CMD"
ssh root@$GUEST_IP "$CMD"
before I use public key, it works well, now I want to change to "expect", BUT I don't want to change above code and "parameter position"
I can post a... (1 Reply)
Hi,
I am using the below code for printing the column position of a particular string
nawk -v srch="DName" -F '\t' '{for(j=1; j<=NF; j++) { if($j==srch) print j } exit }' input_file.txt
The above code prints the column position of the input string DName (that is 1)
Now the problem is,... (7 Replies)
i have this line of code that looks for the same file if it is currently running and returns the count.
`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh | grep -v grep | wc -l`
basically it is assigned to a variable
ISRUNNING=`ps -eaf -o args | grep -i sfs_pcard_load_file.ksh |... (6 Replies)
Discussion started by: wtolentino
6 Replies
LEARN ABOUT OPENSOLARIS
fiocompress
fiocompress(1M) System Administration Commands fiocompress(1M)NAME
fiocompress - file compression utility
SYNOPSIS
/sbin/fiocompress -c [-m] [-b block_size] input_file output_file
/sbin/fiocompress -d input_file output_file
DESCRIPTION
The fiocompress utility is a file compression tool that works together with the dcfs(7FS) file system to perform per-file compression. You
can use fiocompress to decompress a compressed file or mark a compressed file as compressed, causing automatic decompression on read. The
primary use of fiocompress is to compress files in the boot archive.
Note that this utility is not a Committed interface. See attributes(5).
OPTIONS
The following options are supported:
-b block_size
Specify a block size for compression. The default block size is 8192.
-c
Compress the specified file.
-d
Decompress the specified file.
-m
Mark the compressed file for automatic decompression on read. Can be used only in conjunction with -c.
EXIT STATUS
0
The command completed successfully.
-1
The command exited due to an error.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsr |
+-----------------------------+-----------------------------+
|Interface Stability |Private |
+-----------------------------+-----------------------------+
SEE ALSO boot(1M), bootadm(1M), dcfs(7FS), ufs(7FS), attributes(5)NOTES
This compression/decompression utility works only with files stored in a UFS file system.
There is no obvious way to determine whether a given file is compressed, other than copying the file and comparing the number of disk
blocks of the copy against the original.
SunOS 5.11 10 Dec 2008 fiocompress(1M)