Hi,
I am new to shell scripting. This question is about K shell scripting.
I need to print the words from a sentence
suppose that i have a sentence :
TEST_SENTENCE="Please help me in ...
Hi I have a shell script that encodes files. I need it to wait five minutes and look for new files to encode again.
Here is my psuedocode and the actual code.
/bin/bash
encode all vide...
Basicaly I want to have this intial while loop with two or three conditions.
1)-z "$nfs_srv
2)$ASK_VOL_SIZE" -ne 0
3)$nfs_srv -gt $hd_size_convert
How do I write the line to have several...
I want to spawn off a child process from a shell script . but how do i trap the exit code of said command once it has executed?
Example:
nsueu417:OTPEMREP # ls foo
foo: No such file or...
How can I automate to get the fcmsutil of each fiber channel connection into script. I nee to get information on 100 servers
server1:>ioscan -funC fc
Class I H/W Path Driver S/W Stat...
Hello, first off really new to bash, so not sure how this works.
Both of these values should be 15, but it always prooves false.
I believe $hd_size might be stored as a LONG (15.55)
h...
Hi,
Add a user/group to all machines Administrator group.
We have changed the names that we are going to use to login to machines.
I need to add 5 names and 2 groups to Administyrator gro...
Dear experts,
Please help me creating a bash/ksh shell script which will create some directories to a three different paths
/x/y/z
/a/b/c
My reuirements are
1. The script will run ...
I have a system with 200+ print queues that appears not to be using DNS but /etc/hosts instead. Does anyone have a script to create a list of print queues with their corresponding print server...
Hello, looking for a solution to this problem:
basically i am looking for it to upload the latest SQL backup to a website so i can set it as a scheduled task, i want to keep it simple with ...
Dear experts,
Please help me creating a bash/ksh shell script which will rename all .txt and .TXT files to .csv file in a particular directory and with in it's sub directories.
Thanks in...
On our network, we use a .bat file to map network drives and set network time for all our users. On a handful of machines over the past several months, the .bat file has been failing to map d...
I need some assistance. I know there's an easy way to do this with a bash script, but I keep tripping myself over how to format the strings.
I have a directory with 200 files Each is name...
Hi,
I have script converting wav files to gsm.
Converting .wav files to .gsm
Create a bash script...
wav to gsm
for i in *.wav
do
sox $i -r 8000 -c 1 $(basename $i .wav).gsm r...
********************** jupiter.sh **************
(open server
sleep 1
cd /usr ) | telnet
*************************************************
The script ,jupiter.sh tries to conne...
I have often wondered how to do this, and now I have need to do so.
How do I query the reg for a key, and if it has a value of 1, then change it, otherwise eof. I would think this could be...
I would like to create a shell script to delete those folder that already 60 days old regardless how new the file inside that folder, is it possible to do that, remember only check for folder ...
Hi,
I have downloaded a 20MB text file from a server, and I need to read it into an array using PHP, however, the PHP script times out because the file is too large. A previous question (ht...
I am trying to read in a simple colon delimited datafile (i.e. mysql.accts), parse through it with awk to extract out the variables for the MySQL account username, password and database name. ...
Can someone help me with a simple bash script to create a file 'test.txt' and write variables to it.
Variable1=10.2.4.1
Variable2=10.2.4.2
Variable3=10.2.4.3
Variable4=10.2.4.4
and then w...
I want a script to remove all the special characters from a .CSV file. Thanks in advance
Contents of the file is like follows:
WF_CRIT_INCL_CD,Übereinst. erf. (Schreibw. e.),EQ_THIS_NC,G...
I have a file (.dat) with fields that are not seperated by any deliminators, but by position and need to convert it to a csv file. I need a bash script to read the .dat file, find the fields ...
This is a sample script from the clonezilla opensource project.
I guess this will create a root and swap partition. With the swap partition size being "3000000".
Basicaly what I wantin...
I have a directory "multimedia/archive" with many subdirectories named like this: "00000", "00001", ... ,"01075".
The subdirectories contains different versions of many pictures. The director...
I have a mysql dump file (dump.sql) which contains multiple references to a forum URL.
www.url1.com/forums
I want to replace that with the new URL:
www.url2.com/forums
Please advis...