Sponsored Content
Full Discussion: help to remove file
Top Forums UNIX for Dummies Questions & Answers help to remove file Post 302076841 by ranj@chn on Friday 16th of June 2006 03:00:54 AM
Old 06-16-2006
help to remove file

I was actually working with a editor(for colinux) and by mistake created a file with no name at all. It shows up in
Quote:
ls -l
listing. I am not sure on how to delete it. Is there some way of using the inode to delete it.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Batch file to remove double quotes from a file

Hi I have to create a windows batch file which will read an input file and remove "double quotes" from each line of the file. For eg.If input file name is abcd.csv and contents is : "asasd,123123,213213,asd" "esfrf,dsfsdf,234324,sdfsdf" Then the batch file should remove "" from the... (11 Replies)
Discussion started by: akashtcs
11 Replies

2. UNIX for Dummies Questions & Answers

how to copy a file without remove the contents of the target file?

Hello every body, Kindly support me to "copy a file without remove the contents of the target file" Thanks in advance. :) Ahmed Amer Cairo,Egypt (2 Replies)
Discussion started by: ahmedamer12
2 Replies

3. Shell Programming and Scripting

need to remove 1st line of a file and save the file with same old name

Hi friends, I have a doubt, I am not sure whether it is possible ah nu. I am having a file(sample.txt) which contain 5 lines. I want to remove 1st line in the file and save the file with same old name (sample.txt). For removing 1st line i am using sed 1d filename But dono how to... (3 Replies)
Discussion started by: natraj005
3 Replies

4. Shell Programming and Scripting

Remove duplicate lines from first file comparing second file

Hi, I have two files with below data:: file1:- 123|aaa|ppp 445|fff|yyy 999|ttt|jjj 555|hhh|hhh file2:- 445|fff|yyy 555|hhh|hhh The records present in file1, not present in file 2 should be writtent to the out put file. output:- 123|aaa|ppp 999|ttt|jjj Is there any one line... (3 Replies)
Discussion started by: gani_85
3 Replies

5. Shell Programming and Scripting

How to remove blank lines in a file and save the file with same name?

I have a text file which has blank lines. I want them to be removed before upload it to DB using SQL *Loader. Below is the command line, i use to remove blank lines. sed '/^ *$/d' /loc/test.txt If i use the below command to replace the file after removing the blank lines, it replace the... (6 Replies)
Discussion started by: vel4ever
6 Replies

6. Shell Programming and Scripting

Remove bad records from file and move them into a file then send those via email

Hi my requirement is that i want pull the bad records from input file and move those records in to a seperate file. that file has to be sent via email.. any suggentions please (1 Reply)
Discussion started by: sxk4999
1 Replies

7. Shell Programming and Scripting

Remove comments from file with specific file name extensions

Hello Unix board community, I have to program a shell script, but I am a complete noob so I hope I get some help here. The assignment is as follows: The program removes all comments regardless of formatting or language from files with specific file name extensions (php, css, js, ...).... (3 Replies)
Discussion started by: TheZeusMan
3 Replies

8. Shell Programming and Scripting

ksh Loop through file one, remove lines from file two

Good Afternoon, I start with a file named biglist.txt. I have another file smallerlist. txt I want to remove the lines from smallerlist.txt from biglist.txt and leave those lines that do not reside in smallerlist.txt. Thanks !! (2 Replies)
Discussion started by: popeye
2 Replies

9. 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

10. UNIX for Beginners Questions & Answers

Remove lines from File.A based on criteria in File.B

Hello, I have two files of the following form. I would like to remove from File.A where the first three colum matches values in File.B to give the output in File.C File.A 121 54321 PQR CAT 122 765431 ABC DOG 124 98765 ZXY TIGER 125 86432 GEF LION File.B 122 765431 ABC 125 86432 GEF... (4 Replies)
Discussion started by: Gussifinknottle
4 Replies
WHATNOW(1)							     [nmh-1.5]								WHATNOW(1)

NAME
whatnow - prompting front-end for sending messages SYNOPSIS
whatnow [-draftfolder +folder] [-draftmessage msg] [-nodraftfolder] [-editor editor] [-noedit] [-prompt string] [file] [-version] [-help] [-attach header-field-name] [-noattach] DESCRIPTION
Whatnow is the default program that queries the user about the disposition of a composed draft. It is normally automatically invoked by one of the nmh commands comp, dist, forw, or repl after the initial edit. When started, the editor is started on the draft (unless -noedit is given, in which case the initial edit is suppressed). Then, whatnow repetitively prompts the user with "What now?" and awaits a response. The valid responses are: edit re-edit using the same editor that was used on the preceding round unless a profile entry "<lasteditor>-next: <edi- tor>" names an alternate editor edit <editor> invoke <editor> for further editing refile +folder refile the draft into the given folder mime process the draft as MIME composition file using the buildmimeproc command (mhbuild by default) display list the message being distributed/replied-to on the terminal list list the draft on the terminal send send the message send -watch send the message and monitor the delivery process push send the message in the background whom list the addresses that the message will go to whom -check list the addresses and verify that they are acceptable to the transport service quit preserve the draft and exit quit -delete delete the draft and exit delete delete the draft and exit cd directory use the directory when interpreting attachment file names pwd print the working directory for attachment files ls [ls-options] list files in the attachment working directory using the ls command attach files add the named files to the draft as MIME attachments alist [-ln] list the MIME attachments, either short, long [-l] or numbered [-n] detach [-n] files-or-numbers remove MIME attachments, either by file name or by number with -n When entering your response, you need only type enough characters to uniquely identify the response. For the edit response, any valid switch to the editor is valid. For the send and push responses, any valid switch to send(1) is valid (as push merely invokes send with the -push option). For the whom response, any valid switch to whom(1) is valid. For the refile response, any valid switch to the fileproc is valid. For the display and list responses, any valid argument to the lproc is valid. If any non-switch arguments are present, then the pathname of the draft will be excluded from the argument list given to the lproc (this is useful for listing another nmh message). See mh-profile(5) for further information about how editors are used by nmh. It also discusses how environment variables can be used to direct whatnow's actions in complex ways. The -prompt string switch sets the prompting string for whatnow. The -draftfolder +folder and -draftmessage msg switches invoke the nmh draft folder facility. This is an advanced (and highly useful) fea- ture. Consult the mh-draft(5) man page for more information. FILES
$HOME/.mh_profile The user profile <mh-dir>/draft The draft file PROFILE COMPONENTS
Path: To determine the user's nmh directory Draft-Folder: To find the default draft-folder Editor: To override the default editor <lasteditor>-next: To name an editor to be used after exit from <lasteditor> automimeproc: If value is 1, and the draft is a MIME composition file, then automatically call buildmimeproc prior to sending. buildmimeproc: Program to translate MIME composition files fileproc: Program to refile the message lproc: Program to list the contents of a message sendproc: Program to use to send the message whomproc: Program to determine who a message would go to SEE ALSO
send(1), whom(1) DEFAULTS
`-prompt' defaults to "What Now? " `-attach' defaults to "Nmh-Attachment" CONTEXT
None BUGS
The argument to the -prompt switch must be interpreted as a single token by the shell that invokes whatnow. Therefore, one must usually place the argument to this switch inside quotes. If the initial edit fails, whatnow deletes your draft (by renaming it with a site-dependent prefix (usually a comma); failure of a later edit preserves the draft. If the buildmimeproc fails (returns a nonzero status), whatnow simply prints a "What now?" prompt. whatnow depends on the buildmimeproc to tell the user that something went wrong. If whatnowproc is whatnow, then comp, dist, forw, and repl use a built-in whatnow, and do not actually run the whatnow program. Hence, if you define your own whatnowproc, don't call it whatnow since it won't be run. If sendproc is send, then whatnow uses a built-in send, it does not actually run the send program. Hence, if you define your own sendproc, don't call it send since whatnow won't run it. MH.6.8 11 June 2012 WHATNOW(1)
All times are GMT -4. The time now is 04:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy