10 More Discussions You Might Find Interesting
I've just started using a Solaris machine with SunOS 5.10.
After the machine is turned on, I open a Console window and at the prompt, if I execute a pwd command, it tells me I'm at my home directory (someone configured "myuser" as default user after init).
... (2 Replies)
Discussion started by: egyassun
2. UNIX for Beginners Questions & Answers
I asked this question last month in Stack Exchange (linux - delete directory with leading hyphen - Server Fault) and none of the answers supplied worked.
I have somehow created a directory with a leading hyphen and cannot get rid of it.
# ls -li | grep p
2621441 drwxr-xr-x. 2 root root... (4 Replies)
Discussion started by: edstevens
3. Shell Programming and Scripting
It is very simple to remove a hyphen from a word anywhere in that word using a simple sed command (sed -i 's/-//g' filename), but I am not able to figure out how to do this:
What my output should look like:
tree... (1 Reply)
Discussion started by: shoaibjameel123
4. Shell Programming and Scripting
i have a process that receives files similar to below. these are files obviously generated on a windows machine that are submitted to a linux cluster. the one thing they have in common is the leading c:\any-number-of-leading-dirs\filename.xxx. is there a way to re-create/modify the file to remove... (3 Replies)
Discussion started by: crimso
5. Shell Programming and Scripting
Ok so I know the title was probably confusing so here goes: I have a tarball (gzipped) that has a nested directory structure . For example:
... (2 Replies)
Discussion started by: DC Slick
6. UNIX for Dummies Questions & Answers
I am new to Unix, I have a requirement to display owner name , directory or sub directory name, who's owner name is not equal to "oasitqtc".
(here "oasitqtc" is the owner of the directory or sub directory.)
i have a command (below) which will display all folders and sub folders, but i... (6 Replies)
Discussion started by: gagan4599
7. Shell Programming and Scripting
If I call my function with grouped options: "logm -TDIWEFO 'message' ", then only the "T" gets parsed correctly. The subsequent values returned have underscores prefixed to the value: "_D", "_I", etc. If I "logm -T -DIWEFO 'message' ", the "T" and the "D" are OK, but "I" through "O" get the... (2 Replies)
Discussion started by: kchriste
8. UNIX for Dummies Questions & Answers
How would i rmeove all the files in the directory but still keep the directory? (5 Replies)
Discussion started by: JamieMurry
9. Filesystems, Disks and Memory
How do you remove a file named '-'? ('rm' does not work) (5 Replies)
Discussion started by: npatel
10. UNIX for Dummies Questions & Answers
all - I'm trying to delete this directory with no success. This was placed in my folder by a test script I wrote for beginners...
drwxr-xr-x 2 myaddress ssusr 512 Dec 22 16:10 $x+1
Here is the message I receive - I've tried every command possible to remove it:
rmdir:... (7 Replies)
Discussion started by: da_curtain