I'm using Fedora 8. I've written a simple "hello world" program -- it prints hello world to stdout and then writes a line to a file every 10 seconds.
I have put together an init script to s...
i'm having to tweak a bash script, which I dont' know much about... this script, in turn, calls about 5 other shell scripts.
i need the last shell script to return a variable to the calling...
I'm using Fedora 8.
I have an initscript for my app which sets some variables, and then starts the process as another user. ex:
LOGFILE=/usr/local/code/myprog/logfile.txt
PATH=$PATH:/u...
I need to be able to copy all files/subdirectories from one particular directory on one drive to another drive... but only files / directories that do not already exist on dest drive or are ol...
In bash shell, how would I conduct a search for all files and folders with permission 777, and change all of those files to chmod 644, and all of those folders to chown nobody and chmod 770?
I have this script that will search through one level folders and if there are files found than gzip, delete fles and than move gzip to archive folder. The problem I have is when it finds more...
I have a bunch of numbers in a text file
tl@NewWest:~/pas$ head e6
1 491633.998 5457453.139 62.269
2 491632.579 5457455.151 62.410
3 491632.561 5457455.489 62.102
4 491629.344 5457454.188...
Hi,
I need to write a unix shell script to find any "email id" from a particular directory which has sub directories and many text files (text files contain email ids and other text) in it....
Hello Im trying to develop my first custom event handler on a SMS message that will scan incoming text with different cases of string "KEY", "key" or "Key". This project is running on a linux ...
I am writing a script that is going to calculate the likely results of an attack in the game Risk using
bash. I have successfullly sorted 6 sided dice values from the $RANDOM variable below:...
I am using sed to match patterns in csv File. The csv file is as follows:
"VALUE";"VALUE";"VALUE";"VALUE";.......
to replace a value i use:
sed '2,4621s/[^;]*;/"'"$VALUE"'";/11' < fi...
In the code below, I'm checking to make sure the correct # of parameters were passed into the script. If not, I'd like to display a message to the user, then exit the program.
Method #1:...
Hi guys hope u r well and can help.
Im trying to build a perl (OR bash) script that will help me automate the process of creating new files based on what I have in the perl (or bash)script....
Hi guys hope you can help.
Ive got the following code snippet that is not working when using the read function.
echo -n "Enter the menu1 parent folder name that this menu2 file will resi...
Hi guys hope u r well and can help.
Pretty easy this one i hope.
I have a list of files in a directory in the following format:
menu3_career_resumes_examples.php
menu3_career_resume...
I just happily discovered the "time" command on a linux cluster (see URL) for the computing
for life sciences cluster at san francisco state university. i am doing some experiments running
...
I need to find out the files name by:
ls -ltr ../data | more
-rw-r--r-- 1 prod prod 12219 Jun 27 00:01 CDR_20080627000129_711
-rw-r--r-- 1 prod prod 11720 Jun 27 00:03 CDR_20080627000...
Hi:
Consider I have a text file as this one in attached, and I need a tiny Bash script to just sort it by its first field (the numeric field) and display it in the screen. Questions:
1) ...
Hello group,
I'm in the middle of a development but an unexpected request has come and I have to read some elements in an XML file. How can I do this using Bash (using regular expression)? ...
i tried --
df -h
mount
But these commands list logical partions ..like ../dev/hda1 /dev/hda2 ...but I am interested only in finding only drives ..(/dev/hda ) . Is there any direct comm...
Is there a way to search, in shell, for all files and folders with 777 permission? I need to locate them and update permissions to 770 for security.
Hi guys, hope u r well and can help.
I want to create a simple bash script that does the following..
When run, eg. newfile.sh,
1) Prompts the user for a destination filename
2) Does ...
I often type out long commands that I don't want to repeat. If I get a juicy command that works--I generally use echo to send it to a file. Is there an alias or script that I could write in ...