Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

explain_remove_or_die(3) [debian man page]

explain_remove_or_die(3)				     Library Functions Manual					  explain_remove_or_die(3)

NAME
explain_remove_or_die - delete a file and report errors SYNOPSIS
#include <libexplain/remove.h> void explain_remove_or_die(const char *pathname); DESCRIPTION
The explain_remove_or_die function is used to call the remove(2) system call. On failure an explanation will be printed to stderr, obtained from explain_remove(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_remove_or_die(pathname); pathname The pathname, exactly as to be passed to the remove(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
remove(2) delete a name and possibly the file it refers to explain_remove(3) explain remove(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_remove_or_die(3)

Check Out this Related Man Page

explain_mkdir_or_die(3) 				     Library Functions Manual					   explain_mkdir_or_die(3)

NAME
explain_mkdir_or_die - create a directory and report errors SYNOPSIS
#include <libexplain/mkdir.h> void explain_mkdir_or_die(const char *pathname); DESCRIPTION
The explain_mkdir_or_die function is used to call the mkdir(2) system call. On failure an explanation will be printed to stderr, obtained from explain_mkdir(3), and then the process terminates by calling exit(EXIT_FAILURE). This function is intended to be used in a fashion similar to the following example: explain_mkdir_or_die(pathname); pathname The pathname, exactly as to be passed to the mkdir(2) system call. Returns: This function only returns on success. On failure, prints an explanation and exits. SEE ALSO
mkdir(2) create a directory explain_mkdir(3) explain mkdir(2) errors exit(2) terminate the calling process COPYRIGHT
libexplain version 0.52 Copyright (C) 2008 Peter Miller explain_mkdir_or_die(3)
Man Page

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

delete last line from text file

I have a file with which i must remove the last line of the file (the footer). I know how to copy and redirect with tail -1 etc, but how do i delete it permanentely (4 Replies)
Discussion started by: hcclnoodles
4 Replies

2. UNIX for Advanced & Expert Users

remove charcters

How do i remove single quotes(') from a file. Can we use sed for it (2 Replies)
Discussion started by: kris01752
2 Replies

3. UNIX for Dummies Questions & Answers

How to remove Characters before '~'

Hi, I am having a file which contains records as follows: DETAIL_KEY~12344|ACTIVE_PASSIVE~Y|AVG_SIZE_OF_RESPONSE~123123131 DETAIL_KEY~12344|ACTIVE_PASSIVE~Y|AVG_SIZE_OF_RESPONSE~123123131 DETAIL_KEY~12344|ACTIVE_PASSIVE~Y|AVG_SIZE_OF_RESPONSE~123123131... (4 Replies)
Discussion started by: Amey Joshi
4 Replies

4. UNIX for Dummies Questions & Answers

want to remove " in a file and delete empty spaces

I have to remove character " in file which occurs at every line and have to delete empty spaces. Please help (2 Replies)
Discussion started by: vikram2008
2 Replies

5. Shell Programming and Scripting

remove string contains / in a file

How can remove string contains / in a file for example my input like <dgjfgjdgfjsdg/kdfhgdhgjkhdfjkg/jkdfjhdk/kjfdhgkdjh=kjfh:"dfjgdjfg"><dfjvgdjgvdjgfvjdgfjgdjfgjkdg><jdfgvjdgfjgbdjfgbj> i would like to remove <dgjfgjdgfjsdg/kdfhgdhgjkhdfjkg/jkdfjhdk/kjfdhgkdjh=kjfh:"dfjgdjfg">... (2 Replies)
Discussion started by: JDkrishna80
2 Replies

6. UNIX Desktop Questions & Answers

Help me to remove junk char

I wanted to remove junk char in my csv. :mad: Input file format: "17","9986782190","0","D","2" "17","9900918331","0","D","2" "13","9986782194","0","A","2" Output file format 9986782190 9900918331 9986782194 And one more thing all the time "13"," this will be different Ex: . (2 Replies)
Discussion started by: Siddartha
2 Replies

7. UNIX for Advanced & Expert Users

How to remove the Blocked content!!

Dear Team, Please find the screen shot , which shows the attacked page of of my website, people saying using the webmaster tool only we can remove this malicious code. but is it possible to remove the malicious code directly login in to the server , its a dedicated server and... (2 Replies)
Discussion started by: anishkumarv
2 Replies

8. Shell Programming and Scripting

Cut text from a file and remove

Hello Friends, I am stuck with the below problem.Any help will be appreciated. I have a file which has say 100 lines. On the second last line I have a line from which i want to remove certain characters.. e.g CAST(CAST( A as varchar(50)) || ',' || CAST(CAST( B as varchar(50)) || ',' ||... (8 Replies)
Discussion started by: vital_parsley
8 Replies

9. AIX

Not able to remove VTD

Hi, I am trying to remove 1 VTD from VIOS, its not able to remove and throwing the following error. VIOS1$rmdev -dev xxx334.xxxxAs Some error messages may contain invalid information for the Virtual I/O Server environment. rmdev: 0514-519 The following device was not found in the... (5 Replies)
Discussion started by: ksgnathan
5 Replies