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

What is this called? Old film camera viewer?What makes a good film camera?What to do with an old film camera?What should one look for when buying a used film camera?What is the value and age of this pre-1967 Ricoh 35 mm camera?DSLR recommendation, question about old Canon 35mm film Camera & lensesCan anyone identify the silver rangefinder-style camera in this advertisement?What kind of a Polaroid 600-camera is this?Will an old film camera still work even when not used in a very long time?What is this camera / Can I develop the film?How to fit an action camera into antique (bellows) housing?What to check when buying used and old film bodies?

Why is this plane circling around the Lucknow airport every day?Why do aircraft on Flight Radar 24 jump around randomly sometimes?What airport has this walkway over a taxiway?How does Chicago O'Hare's tower sequence aircraft at peak capacity?Which airport is featured in this Delta commercial?After a crash, for how long is the airport closed?Can a passenger plane stand still in the air, or hover at a fixed location above a ground?What are those trucks towing around, and why?What is this airport outside of Cairo, Egypt?Which US airport has the lowest circling MDH?What is this airport video?