Sponsored Content
Top Forums Shell Programming and Scripting How to delete folder name is "-rlt" Post 302350762 by Scrutinizer on Saturday 5th of September 2009 05:35:42 AM
Old 09-05-2009
This should work:
Code:
rm -r -- -rlt

or this:
Code:
rm -r ./-rlt

 

9 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Explain the line "mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'`"

Hi Friends, Can any of you explain me about the below line of code? mn_code=`env|grep "..mn"|awk -F"=" '{print $2}'` Im not able to understand, what exactly it is doing :confused: Any help would be useful for me. Lokesha (4 Replies)
Discussion started by: Lokesha
4 Replies

2. Shell Programming and Scripting

perl folder list with "..", without ".".

Hi Everyone, if my folder "foldera" inside has one file. so if i do if ($df =~ /^\./) { next; } then i will get ### filea ### if i want to have ### .. filea ### means also display the parent .., how should i modify the perl ~// in my code? Thanks ---------- Post updated... (6 Replies)
Discussion started by: jimmy_y
6 Replies

3. Shell Programming and Scripting

Unix commands delete all files starting with "X" except "X" itself. HELP!!!!?

im a new student in programming and im stuck on this question so please please HELP ME. thanks. the question is this: enter a command to delete all files that have filenames starting with labtest, except labtest itself (delete all files startign with 'labtest' followed by one or more... (2 Replies)
Discussion started by: soccerball
2 Replies

4. Shell Programming and Scripting

Delete files older than "x" if directory size is greater than "y"

I wrote a script to delete files which are older than "x" days, if the size of the directory is greater than "y" #!/bin/bash du -hs $1 while read SIZE ENTRY do if ; then find $1 -mtime +$2 -exec rm -f {} \; echo "Files older than $2 days deleted" else echo "free Space available"... (4 Replies)
Discussion started by: JamesCarter
4 Replies

5. Shell Programming and Scripting

awk command to replace ";" with "|" and ""|" at diferent places in line of file

Hi, I have line in input file as below: 3G_CENTRAL;INDONESIA_(M)_TELKOMSEL;SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL My expected output for line in the file must be : "1-Radon1-cMOC_deg"|"LDIndex"|"3G_CENTRAL|INDONESIA_(M)_TELKOMSEL"|LAST|"SPECIAL_WORLD_GRP_7_FA_2_TELKOMSEL" Can someone... (7 Replies)
Discussion started by: shis100
7 Replies

6. Shell Programming and Scripting

Find "*.c" and "Makefile" and then delete them with one line

find "*.c" and "Makefile" and then delete them with one line (3 Replies)
Discussion started by: yanglei_fage
3 Replies

7. UNIX for Dummies Questions & Answers

Using "mailx" command to read "to" and "cc" email addreses from input file

How to use "mailx" command to do e-mail reading the input file containing email address, where column 1 has name and column 2 containing “To” e-mail address and column 3 contains “cc” e-mail address to include with same email. Sample input file, email.txt Below is an sample code where... (2 Replies)
Discussion started by: asjaiswal
2 Replies

8. Shell Programming and Scripting

Delete all log files older than 10 day and whose first string of the first line is "MSH" or "<?xml"

Dear Ladies & Gents, I have a requirement to delete all the log files in /var/log/test directory that are older than 10 days and their first line begin with "MSH" or "<?xml" or "FHS". I've put together the following BASH script, but it's erroring out: for filename in $(find /var/log/test... (2 Replies)
Discussion started by: Hiroshi
2 Replies

9. Shell Programming and Scripting

Bash script - Print an ascii file using specific font "Latin Modern Mono 12" "regular" "9"

Hello. System : opensuse leap 42.3 I have a bash script that build a text file. I would like the last command doing : print_cmd -o page-left=43 -o page-right=22 -o page-top=28 -o page-bottom=43 -o font=LatinModernMono12:regular:9 some_file.txt where : print_cmd ::= some printing... (1 Reply)
Discussion started by: jcdole
1 Replies
SYSADMIN(1)						      General Commands Manual						       SYSADMIN(1)

NAME
sysadmin - responsible for everything imaginable that may or may not have to do with the system you're using. Contraction of "system" and "administrator" SYNOPSIS
sysadmin [-ab] [-cd] [-ef] etc...... DESCRIPTION
sysadmin takes care of everything, is generally harangued, must be supplied with coffee, chocolate, and alcohol in order to function prop- erly, cannot be exposed to direct sunlight, and must not be allowed to have a life. sysadmin is not intended as a user interface routine; other programs provide user-friendly front ends; sysadmin is used by everyone who can track him [her] down. With no flags, sysadmin reads its standard input up to an EOF, or a line which sysadmin wishes to parse, and then proceeds to ignore it entirely and read news all day. When invoked with the -w option, sysadmin reads standard input and responds according to terms of job description. OPTIONS
-bofh Go into Bastard Operator From Hell mode. This option causes sysadmin to use tools stored in the /usr/lib/bofh directory to parse the standard input and route user tasks appropriately. -cd causes sysadmin to become caffeine-deprived, resulting in system slowdowns. -b causes the sysadmin to function normally while augmenting the standard input with beer(5). Can be used with the -t option as well, depending upon which version of sysadmin you are running. -t causes the sysadmin to smoke tobacco, which can result in significant performance improvement, provided you are running the correct version of sysadmin. -Cfile Specify an alternate configuration file (sysadmin.cf is the standard). -dX set debuggin value to X. -fFullname Set the full name of the sysadmin. -Bf Create the sysadmin.cf configuration freeze file. -lname Sets the name of the "luser" person (that is, originator of a given request). -l can only be used by "trusted" users (who are listed in sysadmin.cf). NOTES
The -t option should not be used with a version of sysadmin which is not capable of parsing tobacco input. Though the functionality of this command may seem similar to the -b option, it should not be confused with that or the related -c option. 25 September 1995 SYSADMIN(1)
All times are GMT -4. The time now is 04:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy