Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

remove(2) [plan9 man page]

REMOVE(2)							System Calls Manual							 REMOVE(2)

NAME
remove - remove a file SYNOPSIS
#include <u.h> #include <libc.h> int remove(char *file) DESCRIPTION
Remove removes file from the directory containing it and discards the contents of the file. The user must have write permission in the containing directory. If file is a directory, it must be empty. SOURCE
/sys/src/libc/9syscall SEE ALSO
intro(2), remove(5) DIAGNOSTICS
Sets errstr. REMOVE(2)

Check Out this Related Man Page

BLAZE-REMOVE(1) 					    BlazeBlogger Documentation						   BLAZE-REMOVE(1)

NAME
blaze-remove - removes a post or page from the BlazeBlogger repository SYNOPSIS
blaze-remove [-fipqPV] [-b directory] id... blaze-remove -h|-v DESCRIPTION
blaze-remove removes a blog post or a page with the specified id from the BlazeBlogger repository. OPTIONS
-b directory, --blogdir directory Allows you to specify a directory in which the BlazeBlogger repository is placed. The default option is a current working directory. -p, --page, --pages Tells blaze-remove to remove a page or pages. -P, --post, --posts Tells blaze-remove to remove a blog post or blog posts. This is the default option. -f, --force Disables requiring manual confirmation of each blog post or page removal. This is the default option. -i, --interactive Enables requiring manual confirmation of each blog post or page removal. -q, --quiet Disables displaying of unnecessary messages. -V, --verbose Enables displaying of all messages. This is the default option. -h, --help Displays usage information and exits. -v, --version Displays version information and exits. EXAMPLE USAGE
Remove a blog post: ~]$ blaze-remove 10 Successfully removed the post with ID 10. Remove a page: ~]$ blaze-remove -p 4 Successfully removed the page with ID 4. Remove multiple blog posts: ~]$ blaze-remove 10 4 6 Successfully removed the post with ID 10, 4 and 6. Remove multiple blog posts safely: ~]$ blaze-remove -i 10 4 6 Remove the post with ID 10 titled `Debian and Fedora Packages'? y Remove the post with ID 4 titled `BlazeBlogger 0.8.0 RC2'? y Remove the post with ID 6 titled `BlazeBlogger 0.8.1'? y Successfully removed the post with ID 10, 4 and 6. SEE ALSO
blaze-config(1), blaze-add(1), blaze-list(1) BUGS
To report a bug or to send a patch, please, add a new issue to the bug tracker at <http://code.google.com/p/blazeblogger/issues/>, or visit the discussion group at <http://groups.google.com/group/blazeblogger/>. COPYRIGHT
Copyright (C) 2008-2011 Jaromir Hradilek This program is free software; see the source for copying conditions. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Version 1.2.0 2012-03-05 BLAZE-REMOVE(1)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Cd

why is 'cd' a shell built in and not an executable? (27 Replies)
Discussion started by: clickonline1
27 Replies

2. Post Here to Contact Site Administrators and Moderators

Our First Flash Intro ?

Well, someone created a flash intro for us (their first attempt at SWiSH!) OK, SECOND DRAFT: https://www.unix.com/test_intro2.swf --------------------------- FIRST DRAFT: https://www.unix.com/test_intro1.swf Notice it says "Search before posting a question"..... Well????... (24 Replies)
Discussion started by: Neo
24 Replies

3. Shell Programming and Scripting

Remove unwanted data?

Hi Can any one help me remove the unwanted data? I would want to remove the complete event id 4910 ( the type there is INFO), that means, I have to remove starting from 7th - 19th lines. can any one of you please help? Thanks, (24 Replies)
Discussion started by: hitmansilentass
24 Replies

4. UNIX for Dummies Questions & Answers

Copy all the files with time stamp and remove header,trailer from file

All, I am new to unix and i have the following requirement. I have file(s) landing into input directory with timestamp, first i want to copy all these files into seperate directory then i want to rename these files without timestamp and also remove header,trailer from that file.. Could... (35 Replies)
Discussion started by: ksrams
35 Replies

5. Shell Programming and Scripting

remove files other than selected

I wanna remove a set files other than some selected files. Eg. :rolleyes::rolleyes::rolleyes: a directory contains n files like test1.dat test2.dat test3.dat test4.dat out5.dat out1.dat i wanna remove all files which doesnot name like *test* I want to use this in shell... (22 Replies)
Discussion started by: freakygs
22 Replies

6. Shell Programming and Scripting

Unix Remove repetitive alphabets

Hi, I am trying to write a script that will take 2 or more instances of repetitive alphabets (ZZ) to be removed from a field. This should only happen from beginning and end of a field. For Example : Input File a) ZZZIBM Corporation b) ZZZIBM Corporation ZZZZZ b) IBM ZZZ... (26 Replies)
Discussion started by: msalam65
26 Replies

7. Shell Programming and Scripting

sed to remove

Hello I have a file with records...The records have several lines and have start and end born... This is a template: 000000001 LDR L ^^^^^nam^^2200325Iia^45e0 000000001 022 L $$a0081-3397 000000001 041 L $$aSPA 000000001 088 L $$aJ.E.N. 551 000000001 090 L $$aINFORMES JEN... (22 Replies)
Discussion started by: ldiaz2106
22 Replies

8. UNIX for Dummies Questions & Answers

How do I remove commands?

I would like to remove rsh, rcp, rlogin from my production server. How would i go about it? Should i remove them from their original location using rm? Will that impact on any other functionality? ---------- Post updated at 12:39 AM ---------- Previous update was at 12:16 AM ---------- ... (23 Replies)
Discussion started by: pinga123
23 Replies

9. Shell Programming and Scripting

Want to remove the last characters from each row of csv using shell script

Hi, I've a csv file seperated by '|' from which I'm trying to remove the excess '|' characters more than the existing fields. My CSV looks like as below. HRLOAD|Service|AddChange|EN PERSONID|STATUS|LASTNAME|FIRSTNAME|ITDCLIENTUSERID|ADDRESSLINE1 10000001|ACTIVE|Testazar1|Testore1|20041|||... (24 Replies)
Discussion started by: rajak.net
24 Replies

10. Shell Programming and Scripting

Remove duplicate line on condition

Hi Ive been scratching over this for some time with no solution. I have a file like this 1 bla bla 1 2 bla bla 2 4 bla bla 3 5 bla bla 1 6 bla bla 1 I want to remove consecutive occurrences of lines like bla bla 1, but the first column may be different. Any ideasss?? (23 Replies)
Discussion started by: jamie_123
23 Replies

11. Shell Programming and Scripting

How to remove the last 3 lines from many files?

Hello, I need to run a command or shell script that will remove the last 3 lines from every .js file that is under the directory /var/ww/vhost/ Can you please help ? thank you. (22 Replies)
Discussion started by: MaRiOsGR
22 Replies

12. UNIX for Dummies Questions & Answers

Want to remove all lines but not latest 50 lines from a file

Hi, I have a huge file which has Lacs of lines. File system got full. I want your guys help to suggest me a solution so that I can remove all lines from that file but not last 50,000 lines. I want solution which can remove lines from existing file so that I can have some space left with. (28 Replies)
Discussion started by: prashant2507198
28 Replies

13. UNIX for Dummies Questions & Answers

Remove newlines

Hi buddy's my file are like this: s.no,name,band,sal 1,"suneel",,10 2,"bargav sand",,20 30," ebdug gil",,4 but i want s.no,name,band,sal 1,"suneel",,10 2,"bargav sand",,20 30,"ebdug gil",,4 any command or Shell script for this. please help me it's urgent to implement (33 Replies)
Discussion started by: Suneelbabu.etl
33 Replies

14. Shell Programming and Scripting

awk remove/grab lines from file with pattern from other file

Sorry for the weird title but i have the following problem. We have several files which have between 10000 and about 500000 lines in them. From these files we want to remove lines which contain a pattern which is located in another file (around 20000 lines, all EAN codes). We also want to get... (28 Replies)
Discussion started by: SDohmen
28 Replies

15. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies