remove file, if i presents filename in shell [on hold]remove new linesPrint file contents and delete the printed content* from the fileShell Script: Use “find” to execute shell a command that contains “filename”(without extension) returned from “find”Shell script for logrotatingHow to remove a line from a tag in shell script?Linux shell script delete specific contents in fileReplace part of filename by directory nameDelete lines from a fileremove path “/” from file nameDelete file which matches a pattern using linux command

How can a function with a hole (removable discontinuity) equal a function with no hole?

What is the best translation for "slot" in the context of multiplayer video games?

How to write papers efficiently when English isn't my first language?

Purchasing a ticket for someone else in another country?

Are student evaluations of teaching assistants read by others in the faculty?

Pole-zeros of a real-valued causal FIR system

Is there a good way to store credentials outside of a password manager?

What can we do to stop prior company from asking us questions?

How do I go from 300 unfinished/half written blog posts, to published posts?

Closest Prime Number

Is exact Kanji stroke length important?

Detecting if an element is found inside a container

How to draw lines on a tikz-cd diagram

Why are there no referendums in the US?

Proof of work - lottery approach

Escape a backup date in a file name

Applicability of Single Responsibility Principle

What does "I’d sit this one out, Cap," imply or mean in the context?

Is expanding the research of a group into machine learning as a PhD student risky?

Customer Requests (Sometimes) Drive Me Bonkers!

Large drywall patch supports

How does it work when somebody invests in my business?

Risk of infection at the gym?

What is the opposite of 'gravitas'?



remove file, if i presents filename in shell [on hold]


remove new linesPrint file contents and delete the printed content* from the fileShell Script: Use “find” to execute shell a command that contains “filename”(without extension) returned from “find”Shell script for logrotatingHow to remove a line from a tag in shell script?Linux shell script delete specific contents in fileReplace part of filename by directory nameDelete lines from a fileremove path “/” from file nameDelete file which matches a pattern using linux command













-1















If I present in shell, like ./a -f text1,
then text1 will be removed.



a is a directory name



-f if option of delete ( in a )



text1 is file in home directory



so I want to make some code in a (Directory) to make a delete program.










share|improve this question









New contributor




user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by αғsнιη, Kusalananda, nwildner, X Tian, Anthony Geoghegan yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 6





    I'm sorry but this is very hard to understand. Please edit your question and add an example of what you want. You might also want to try using a service like google translate to help you translate from your language.

    – terdon
    yesterday






  • 2





    also take a look at the formatting tool button; it formats code separately so that it's in a different font and is not mangled by any HTML translation.

    – Jeff Schaller
    yesterday






  • 1





    Show us what you want to type, and show us what you want to happen, then show us what you have tried.

    – ctrl-alt-delor
    yesterday






  • 2





    If I understand you correct, then you can't have the command you want: You cant do «directory» «option» «file». You have to do «command» «arguments» where arguments is a list of words (file names, options, directory-names, etc).

    – ctrl-alt-delor
    yesterday
















-1















If I present in shell, like ./a -f text1,
then text1 will be removed.



a is a directory name



-f if option of delete ( in a )



text1 is file in home directory



so I want to make some code in a (Directory) to make a delete program.










share|improve this question









New contributor




user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











put on hold as unclear what you're asking by αғsнιη, Kusalananda, nwildner, X Tian, Anthony Geoghegan yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 6





    I'm sorry but this is very hard to understand. Please edit your question and add an example of what you want. You might also want to try using a service like google translate to help you translate from your language.

    – terdon
    yesterday






  • 2





    also take a look at the formatting tool button; it formats code separately so that it's in a different font and is not mangled by any HTML translation.

    – Jeff Schaller
    yesterday






  • 1





    Show us what you want to type, and show us what you want to happen, then show us what you have tried.

    – ctrl-alt-delor
    yesterday






  • 2





    If I understand you correct, then you can't have the command you want: You cant do «directory» «option» «file». You have to do «command» «arguments» where arguments is a list of words (file names, options, directory-names, etc).

    – ctrl-alt-delor
    yesterday














-1












-1








-1








If I present in shell, like ./a -f text1,
then text1 will be removed.



a is a directory name



-f if option of delete ( in a )



text1 is file in home directory



so I want to make some code in a (Directory) to make a delete program.










share|improve this question









New contributor




user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












If I present in shell, like ./a -f text1,
then text1 will be removed.



a is a directory name



-f if option of delete ( in a )



text1 is file in home directory



so I want to make some code in a (Directory) to make a delete program.







linux shell-script






share|improve this question









New contributor




user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









ctrl-alt-delor

12.1k42561




12.1k42561






New contributor




user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









user343703user343703

1




1




New contributor




user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






user343703 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




put on hold as unclear what you're asking by αғsнιη, Kusalananda, nwildner, X Tian, Anthony Geoghegan yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









put on hold as unclear what you're asking by αғsнιη, Kusalananda, nwildner, X Tian, Anthony Geoghegan yesterday


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 6





    I'm sorry but this is very hard to understand. Please edit your question and add an example of what you want. You might also want to try using a service like google translate to help you translate from your language.

    – terdon
    yesterday






  • 2





    also take a look at the formatting tool button; it formats code separately so that it's in a different font and is not mangled by any HTML translation.

    – Jeff Schaller
    yesterday






  • 1





    Show us what you want to type, and show us what you want to happen, then show us what you have tried.

    – ctrl-alt-delor
    yesterday






  • 2





    If I understand you correct, then you can't have the command you want: You cant do «directory» «option» «file». You have to do «command» «arguments» where arguments is a list of words (file names, options, directory-names, etc).

    – ctrl-alt-delor
    yesterday













  • 6





    I'm sorry but this is very hard to understand. Please edit your question and add an example of what you want. You might also want to try using a service like google translate to help you translate from your language.

    – terdon
    yesterday






  • 2





    also take a look at the formatting tool button; it formats code separately so that it's in a different font and is not mangled by any HTML translation.

    – Jeff Schaller
    yesterday






  • 1





    Show us what you want to type, and show us what you want to happen, then show us what you have tried.

    – ctrl-alt-delor
    yesterday






  • 2





    If I understand you correct, then you can't have the command you want: You cant do «directory» «option» «file». You have to do «command» «arguments» where arguments is a list of words (file names, options, directory-names, etc).

    – ctrl-alt-delor
    yesterday








6




6





I'm sorry but this is very hard to understand. Please edit your question and add an example of what you want. You might also want to try using a service like google translate to help you translate from your language.

– terdon
yesterday





I'm sorry but this is very hard to understand. Please edit your question and add an example of what you want. You might also want to try using a service like google translate to help you translate from your language.

– terdon
yesterday




2




2





also take a look at the formatting tool button; it formats code separately so that it's in a different font and is not mangled by any HTML translation.

– Jeff Schaller
yesterday





also take a look at the formatting tool button; it formats code separately so that it's in a different font and is not mangled by any HTML translation.

– Jeff Schaller
yesterday




1




1





Show us what you want to type, and show us what you want to happen, then show us what you have tried.

– ctrl-alt-delor
yesterday





Show us what you want to type, and show us what you want to happen, then show us what you have tried.

– ctrl-alt-delor
yesterday




2




2





If I understand you correct, then you can't have the command you want: You cant do «directory» «option» «file». You have to do «command» «arguments» where arguments is a list of words (file names, options, directory-names, etc).

– ctrl-alt-delor
yesterday






If I understand you correct, then you can't have the command you want: You cant do «directory» «option» «file». You have to do «command» «arguments» where arguments is a list of words (file names, options, directory-names, etc).

– ctrl-alt-delor
yesterday











0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

-linux, shell-script

Popular posts from this blog

Creating 100m^2 grid automatically using QGIS?Creating grid constrained within polygon in QGIS?Createing polygon layer from point data using QGIS?Creating vector grid using QGIS?Creating grid polygons from coordinates using R or PythonCreating grid from spatio temporal point data?Creating fields in attributes table using other layers using QGISCreate .shp vector grid in QGISQGIS Creating 4km point grid within polygonsCreate a vector grid over a raster layerVector Grid Creates just one grid

Word for a person who has no opinion about whether god existsWord for having a definite opinion while simultaneously withholding judgment?What's the opposite of “newcomer? Is ”veteran" OK?What do you call an “atheist” who might believe in an afterlife?What's a word for someone who wants to voice opinions but not have them challenged?Word for someone who dismisses contrary opinions as irrational?Somone who thinks they are overly special/out of the ordinaryIs there a word, phrase or idiom for “a person who is incapable of thinking about the future”?The belief that a god is human-likeA word for a non-famous person/thing you have heard a lot aboutAdjective for a person who enjoys taking care of their appearance

Can I redirect output to a log file and background a process at the same time?2019 Community Moderator ElectionUnable to write to file in shell script when running command in backgroundredirect and log script outputhow to properly log the output of a console program that frequently updates “parts” of the screen, resulting in a messy log file?How can I redirect the output of a child process?grep script - output lines at the same time into echoHow to run process in background and get its pid to create log file nameHow to redirect output to a log from expect commandHow to clear a redirect log file content in shell?Log background jobs started in all the manually started shells?Why do `jobs` and `dirs` run in command subsitution, process substitution, pipeline, and background jobs output the same as in original shell?How to redirect output to file to STDOUT?