I have a set of files created under different name, but they all have the same directory name at some point. I will like to delete all the files and directories after the common name:
Here is an example:
techs\fins\results\oaks\bigs
tech2\gihs\results\gears\picks
... (3 Replies)
I'm not familiar with the stty command.
What would "stty erase e" do to my system and what kind of problems would it create? Also, how would I undo this command? (1 Reply)
This is on our Ultra 5/10 Sparc with Solaris 9.
I need to store the following (stty) keys in the .profile and /etc/profile files as
shown here.
erase "Back Space Key"
Interrupt "Ctrl + C"
I need the exact syntax/procudure as I have to set these two keys whenever I login to the terminal... (1 Reply)
does anyone know how to incorporate this in a script so users can actually make use of their backspace button that they've grown accustomed to?
stty erase ^H --- this isn't working the script. works on command line but i wanna invoke it whenever this program of mine is run so users can use... (2 Replies)
Hello,
I'd like to find pattern in a file and erase line containing that pattern and 2 lines below that pattern. I know how to find pattern with grep -r pattern and erase line containing that pattern, but can't figure out the rest, how to erase 2 lines below that pattern line. Any suggestions?
... (4 Replies)
Hello everybody i need to erase a at job that i write.
I wrote
at 22
at>execute a command
at>Ctr + d
How do i erase this? I don`t wan`t to do this. I need to change something
when i pressed ctrl + d give a job number (2 Replies)
Hi,
I have a BASH script where I would like to identify all the lines of a text file that match specific pattern, and then erase them one by one. The ultimate goal will be to identify all the lines matching the pattern, and then for each line identified prompt the user whether or not to erase... (3 Replies)
Hey everyone!. I have a problem with a file that doesn't allow any operation on it. I can't rm,mv,cp nor any other operation to it, I get the following errors:
bash-2.05# mv ora_2527.aud /bkp
mv: cannot access ora_2527.aud
bash-2.05# cp ora_2527.aud /bkp
cp: cannot access ora_2527.aud... (4 Replies)
Discussion started by: dragonov7
4 Replies
LEARN ABOUT OPENDARWIN
gzexe
GZEXE(1) General Commands Manual GZEXE(1)NAME
gzexe - compress executable files in place
SYNOPSIS
gzexe [ name ... ]
DESCRIPTION
The gzexe utility allows you to compress executables in place and have them automatically uncompress and execute when you run them (at a
penalty in performance). For example if you execute ``gzexe /bin/cat'' it will create the following two files:
-r-xr-xr-x 1 root bin 9644 Feb 11 11:16 /bin/cat
-r-xr-xr-x 1 bin bin 24576 Nov 23 13:21 /bin/cat~
/bin/cat~ is the original file and /bin/cat is the self-uncompressing executable file. You can remove /bin/cat~ once you are sure that
/bin/cat works properly.
This utility is most useful on systems with very small disks.
OPTIONS -d Decompress the given executables instead of compressing them.
SEE ALSO gzip(1), znew(1), zmore(1), zcmp(1), zforce(1)CAVEATS
The compressed executable is a shell script. This may create some security holes. In particular, the compressed executable relies on the
PATH environment variable to find gzip and some other utilities (tail, chmod, ln, sleep).
BUGS
gzexe attempts to retain the original file attributes on the compressed executable, but you may have to fix them manually in some cases,
using chmod or chown.
GZEXE(1)