I want to display all files and directories and sort by date (similar to dir /od in Windows). Is there a way? If it can't be done with ls or if I have to pipe the putout to some other command,...
i am trying to check if a file exists before continuing with my script but it is not working.
if [ -e $filename ]
then
file_menu #calls the function file_menu if file exists
else
ech...
Looking for syntex for mailx command to have file go as an attachment.
When sending file as text I type
mailx -s "My Email Topic" johndoe@somesite.com < mytext.txt
and the text appears as t...
Hi,
I am wondering how can I exclude a directory from a tar file?
Any help would be appreciated.
Thanks
Hi all,
Actually what is the different of command: "init 6" and "reboot"?
I checked the manual, these two commands are also for reboot use. If I reboot the server in routine weekly duty,...
I have a text file im trying to parse out information after a certain line with a keyword. After this keyword all the information
below it is important to me, but for some reason its strippin...
hai friends,
Is there any command in unix to find the Oracle version number of a oracle that set in the ORACLE_HOME environment variable.
Thanks
Hi,
I need to write a generic installation script. So for example we would run a set of sql scripts, so there would be a file with all the scripts to run in and the installation script wou...
Is there an easy way to convert GMT to say eastern within a shell script? Can someone provide an example?
thanks
Dear every expert,
How to create a script to automatic telnet to a host?
Thank You!
Hi,
I have a unix shell script (csh) that accepts a filename as an input.
In the script I want to be extract the first 3 characters of the filename (not the content of the file) so that ...
I have a script that is run from "/logs/Portal" that removes ALL files in the "/logs/Portal/archive" directory older than 10 days. Here is the syntax: rm -f `find archive -type f -mtime +10 ...
I'm trying to backup a SCO UnixWare 7.1.0 system from the shell using find/cpio. Trouble is I don't want to backup one very large directory and I wondered if there is 'find' syntax to do this?...
OK.. I'm sure this question is very basic to most of you. .Just trying to get an understanding..
I have a bff file that I downloaded from the IBM website called perl.libext.2.0.56.0.bff . T...
I need a cool find command which can FIND a particular string only (particular word only eg. "foo" not foo@yahoo.com) in directories/sub directories and output only the list of files con...
Dear experts,
I would like to know as a regular unix user, how what commands can get the information of HP-UX system
CPU clock speed (in MHz or GHz),
memory size (in MB or GB),
swap s...
In unix mks shell the following error occurs
$ seq=07
$ seq=`expr ${seq} + 1`
$ echo $seq
8
$ seq=08
$ seq=`expr ${seq} + 1`
expr: non-numeric argument "08" <=====
for 08 and 09...
I want to insure upper case and/or lower case in certain situations, mostly for parameters to a script.
I saw this on EE but it didn't seem to work:
paramL=${param} | tr 'A-Z' 'a-z'
H...
1. I would like to check the occupied port being used and the appplication who use them?
2. Would like to check the free port available for usage.
HI
I need to search a string in a file(unix) where ever it occurs,which has space as delimiter and convert that string to lower case
ex: File content:
------------------------------------...
How do you flush the arp table. Do you have to do it one entry at a time, or can you just ditch the whole thing at once?
Thanks,
Bret
Hello everyone!
This is a novice's question, but until now I didn't have the chance to do it. It is GNU's file, of course. Let me know which command to use. Thank you!
Mitsuru
I need to decrypt a password stored in /etc/passwd.
Is there a way to do this?
I thought there might be tools that do brute force on it.
(since unix passwd encryption is a one way encrypt).
I am trying to run sqlplus and sqldr from a korn shell script. See the script below. It run step 2 but doesnt go to step 3. If i remove step 2 it runs step 3 but it give me >> unmatched erro...