10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello all :)
Here is my code i try to complete:
address1="$(ssh root@$machine -x "lxc-info -n $machine-worker1 -H -i")"
if //ifthe file addrfile does not exist
then create the file addrfile
echo "$address1">"$addrfile"
fi
"$address1">"$addrfile"
How, can i... (4 Replies)
Discussion started by: chercheur111
4 Replies
2. Shell Programming and Scripting
I created a script that will go out and so a "/sbin/chkconfig --list | egrep XXX" against a server list that would create an output file like the following example:
----------------------------------------------------------------------------------
SERVER1
RC_Script_1 0:off 1:off 2:off... (4 Replies)
Discussion started by: asnatlas
4 Replies
3. Shell Programming and Scripting
Hi to all,
I got this content/pattern from file http.log.20110808.gz
mail1 httpd: Account Notice: close igchung@abc.com 2011/8/7 7:37:36 0:00:03 0 0 1
mail1 httpd: Account Information: login sastria9@abc.com proxy sid=gFp4DLm5HnU
mail1 httpd: Account Notice: close sastria9@abc.com... (16 Replies)
Discussion started by: Mr_47
16 Replies
4. UNIX for Dummies Questions & Answers
Hi all
Below this is my script..I want to write the command to create a text file in my script below. If anyone know how to do...show me the result.I also want to do this script run automatically without type in terminal.
Thanks.
#!/usr/bin/sh... (6 Replies)
Discussion started by: mastercar
6 Replies
5. Shell Programming and Scripting
hi,
How to create a log file of a script. Like spool does .
I want to create a log file of whatever the script is doing step wise.
like -xvf does or something better then that.
thanks ... (3 Replies)
Discussion started by: madfox
3 Replies
6. Shell Programming and Scripting
I have a requirement, which is as follows
*. Folder contains list of xmls. Script has to create new xml files by copying the existing one and renaming it by appending "_pre.xml" at the end.
*. Each file has multiple <Name>fileName</Name> entry. The script has to find the first occurance of... (1 Reply)
Discussion started by: sudesh.ach
1 Replies
7. Shell Programming and Scripting
Hi ,
I have a text file text.txt which contains values as
ULTRA,OTHERS,Mumbai,16912
ULTIMATE,OTHERS,Mumbai,16913
ULTIMATIUM,OTHERS,Mumbai,16914
I want to read the file line by line and create insert scripts like
INSERT INTO TAB ( DESC,PLACE,NUMBER ) VALUES... (3 Replies)
Discussion started by: ultimatix
3 Replies
8. Shell Programming and Scripting
Hi,
I want to create a file from within a script that checks whether the file itself exists or not. Like:
if ] then
echo Creating file...
cat << EOF > .theFile
echo This line should be in the file
EOF
fi
If I run the script with no condition (commenting... (2 Replies)
Discussion started by: lamano
2 Replies
9. Shell Programming and Scripting
hi
i am reading a directory, and reading those files one by one
i need to write some of file contents to a new file ,for this i need to create a new file for each file
please tell me how to create new file in shell script
thanks
Satya (4 Replies)
Discussion started by: Satyak
4 Replies
10. UNIX for Dummies Questions & Answers
Hi,
i want to create a text file (init${x}.ora) and write information to it via a korn shell script.
Is it right to do it as shown below (the file doesnt exist yet)?
x=$1
file="$ORC/dbs/init${x}.ora"
echo "info here..." >> $file
will this file get created? (2 Replies)
Discussion started by: n8575
2 Replies