03-13-2016
Thanks Don. My mistake I did not include 1. Its working like magic. what does close(cmd) and 1 do? Do you mind explaining how this is working?
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a html file called myfile. If I simply put "cat myfile.html" in UNIX, it shows all the html tags like <a href=r/26><img src="http://www>. But I want to extract only text part.
Same problem happens in "type" command in MS-DOS.
I know you can do it by opening it in Internet Explorer,... (4 Replies)
Discussion started by: los111
4 Replies
2. UNIX for Dummies Questions & Answers
Hi ,
I have a list of files in the directory I want to sort based on the file name.
But in the middle of filename contains the number based on that I need to sort.Could you suggest me on the same?
Example filenames:
/user1$ls
RS.DEV.ISV.F1.RS.REFDATA.DATA... (1 Reply)
Discussion started by: praveen.thumati
1 Replies
3. Shell Programming and Scripting
Hi Guys,
I need a help. I have 1130 zip files. Each one of them has files including 1 html file with long file name (includes special charactors, Alphabetic and numbers).
I have copied all 1130 zip files to my linux system and extracted using below command.
Find . -name "*.zip" -exec... (7 Replies)
Discussion started by: Rajmani
7 Replies
4. Shell Programming and Scripting
I now have a 230,000+ lines long text file formatted in segments like this:
Is there a way to sort this file to have everything in chronological order, based on the date and time in the text? In this example, I would like the result to be: (19 Replies)
Discussion started by: KidCactus
19 Replies
5. UNIX for Dummies Questions & Answers
input ("/" delimited fields):
style1/book1 (author_C)/editor1/2000
style1/book2 (author_A)/editor2/2004
style1/book3 (author_B)/editor3/2001
style2/book8 (author_B)/editor4/2010
style2/book5 (author_A)/editor2/1998
Records with same field 1 belong to the same group.
Using asort (not sort),... (3 Replies)
Discussion started by: lucasvs
3 Replies
6. Web Development
Hi Friends,
I have a HTMl file with 10 columns.
I found a script online that can sort any single column in a HTML file.
But, I would like to sort on multiple columns at once.
Could you please show some pointers?
Thanks (6 Replies)
Discussion started by: jacobs.smith
6 Replies
7. Shell Programming and Scripting
unzip -v gives CRC info of each file in a zip(in my case .EAR) file.
# unzip -v my-application.ear
Archive: my-application.ear
Length Method Size Cmpr Date Time CRC-32 Name
-------- ------ ------- ---- ---------- ----- -------- ----
197981 Defl:N 183708 7%... (1 Reply)
Discussion started by: kchinnam
1 Replies
8. Shell Programming and Scripting
Hi, I have some data I have taken from the internet in the following scheme:
name
direction
webpage
phone number
open hours
menu url
book url
name
...
Of course the only line that is mandatory is the name wich is the one I want to sort by.
I have the following sed & awk script that... (3 Replies)
Discussion started by: devmsv
3 Replies
9. UNIX for Beginners Questions & Answers
Hi all,
I have a text file similar to this:
Text
More text
Etc
Stuff
That
Is
Needed
Etc
Etc
This contains over 70 entries and each entry has several lines of text below the name in square brackets. (5 Replies)
Discussion started by: Scally
5 Replies
LEARN ABOUT OSF1
acl_copy_int
acl_copy_int(3) Library Functions Manual acl_copy_int(3)
NAME
acl_copy_int - Copies the ACL from contiguous, persistent format to internal working space format
LIBRARY
Security Library (libpacl.a)
SYNOPSIS
#include <sys/acl.h>
acl_t acl_copy_int( void *buf_p);
PARAMETERS
The buffer containing the contiguous, persistent form of the ACL to be copied.
DESCRIPTION
NOTE: This function is based on Draft 13 of the POSIX P1003.6 standard.
The acl_copy_int() function copies the contents of the ACL from the buffer pointed to by buf_p to the working storage internal format.
Space is allocated as required. Upon successful completion, a pointer to the ACL internal working storage is returned.
RETURN VALUES
Upon successful completion, the acl_copy_int function returns a pointer to the working storage. Otherwise a NULL pointer is returned and
errno is set to indicate the error.
ERRORS
If any of the following conditions occur, the acl_copy_int() function sets errno to the corresponding value:
The ACL referenced by buf_p is not valid.
The ACL working storage could not be allocated.
RELATED INFORMATION
acl_copy_ext(3)
Security delim off
acl_copy_int(3)