1,891 Topics
| |
This code changes color of prompt according to user, suppose if user is root then color would be red and normal user would have color black. This'll diffrentiate in users. | |
Here is a little spinner thing for the command line, used when your current bash script is waiting on a background/system process. The weird character is ^H or a backspace. | |
I know what your thinking, You and everyone else has always wanted a clock that sits at the top of your command prompt and tells you the time. Why ? I made this in first year when i spent countless hours programming and little in bed. I decided i needed … | |
Hello, I have used bash scripting for sometime in the past and know quite a bit of linux. But haven't used it in a long time. I am off job and took some data entry job where I need to do some stats work on a very long list of … | |
I am attempting to familiarize myself with BASH so i can work in a Unix environment. I want to export a shell variable to a simple C program but seem to be unable to do so. Here is the C program: (i am also very unfamiliar with C but this … | |
Helo frndz, I'm novice in shell scripting...I need ur frnd help to write a shell script for taking backups. This script should use cp command to take backups. Script can read the list of directories and destination directory from a file or ask user for this info interactively... Example: Only … | |
Hi Im writing a script where im using the date command in this format. [Datestart=`date '+%m/%d/%Y':'%H:%M:%S'`] Is their a way to force the date variable above to go back 5minutes?? I know their is a way in perl but i prefer writing this script in ksh | |
Hey Ive been asked (and I may add this to my system as well) to make a shell script that backups to all files in x location to another location in z. The thing is that the backup must only be made if one file has been changed. Example: /x … | |
Is it possible to change the desktop background, hide the desktop icons, and hide the menu bar (in windows) using a batch script? If not, could someone direct me as to how to do it in C/C++? Thanks | |
I want to run multiple test cases, for a java program. How can i write script that causes the same program to run for different test cases. Test cases need to be included in same file or different files? how to write the script? | |
HI Guys, Prob a very simple one but im stumped, I run the following command and get: [code] date Wednesday, 19 August 2009 09:20:59 BST [/code] But when I run [code] date -u '+%y%m%d.%H:%M:%S' 090819.08:21:27 [/code] My question is why is the second command an hour behind? In my environment … | |
Hi All Facing issue with using sed and globally replacing a word with date variable for a sql file. Any help would be appreciated. [code]sed -e "s/DATEST\/$DATESTART/g" $SQLREAD > $SQLNEW sed -e "s/DATEST\/08/25/2009:07:41:41/g" /uat/ut21_sysmon/quest/foglight/JJ/jjsql Suffix too large - 512 max: s/DATEST\/08/25/2009:07:41:41/g[/code] Thanks | |
Hi all I just have questions about how not to show messages after you execute a certain command. for example whenever you execute "which xxx" there will always be a message on the terminal saying its path or command not found will be written. is that possible to write a … | |
As mentioned in the title. I wrote a script that has pretty long execution time. Some user just close the window half way and in the end cause some file corrupted. Is there any way to prevent the user closing the window? (Like turn the 'x' button of the window … | |
I'm new at scripting and I need help with converting multiple ".TXT" files to one ".CSV" file. Each file will have a different number of lines, then after the last line there is a blank line then more data, I don't want to use the data after the blank line. … | |
Hi all, I try to make a system where client can send their sms (contained contact file in it that compressed) to server using sms gateway concept. In this case, server must handle 3 condition : registration, request sending file to server (by client), and request take file in server … | |
Hello, I would like to download a compiler that works with max os x MacBook Pro that when doing my Unix homework I can compile and then know it works before I go to the University's website to log in and run the program. Or do I have to use … | |
Hello, I am trying to write a bash shell script that does the following: I would really appreciate if someone can help me correct my code that i have written below: 1.Finds all *.txt files within my directory of interest (files are in sub-directories) 2. reads each of the files … | |
Please some one can you tell me what is @_ mean? | |
I am attempting to set a ulimit inside of a script to be run by TWS/Maestro. Can't figure it out. Does anyone have any ideas? :-/ | |
Hi, I want to upload a file recursively using curl command, the file is in the directory where i am running the script here is the details 1) The file rss.txt is in this directory [ashok@qa-adm-001 rss]$ pwd /home/ashok/rss 2) If i run POST request as a command, the file … | |
hai dani, pls anyone help me how to add data into filename actually i tried like this: $str|cat >> EmpFile for the above statement im not able to do coz even $str is also considere as command. how to insert the value? | |
I have a directory called "images" filled with about one million images. Yep. I want to write a shell command to rename all of those images into the following format: original: filename.jpg new: /f/i/l/filename.jpg Any suggestions? Thanks, Dan | |
Hi guys, I have the following information in a text file, which looks like this: -rw-rw-r-- 1 user user 12203 Aug 6 01:02 app1.sql -rw-rw-r-- 1 user user 12343 Aug 6 01:02 app2.sql -rw-rw-r-- 1 user user 12238 Aug 6 01:02 app3.sql I need to Trim the unwanted strings and … | |
Hi all, I am very new to shell scripting.I have the requirement like one program is there, if it is running leave like that only and if it is stopped it has to be restart and once again keep watching and it is stopped we a have to restart once … | |
Hi. iv'e been looking around the web trying to find a suitable script to use with my hltv servers , unfortunately to no avail :( . I'm just wondering if anyone here could perhaps help me out with a shell script to do what i need it to , i … | |
Hi, I call "set -o notify" to notify me when my background jobs finish. I find that the messages upon finishing are different: for some job, it starts sometimes with "[jobID]", sometimes with "[jobID]+" and sometimes "[jobID]-". I wonder what they mean actually? Do they mean the jobs are finished … | |
hey there...could I please ask for some help for my programming assignment. I having a problem in assigning values to a variables inside a function. I don't know what im doing wrong...any suggestions could be a great help..here is my code [CODE] a = 0 myfunc(){ echo $1 "Computation" a … | |
Hi all. I'm not sure if this is the correct place to post this, but whatever. I have a simple .reg file that adds the command 'Open Dos Box' to the menu that pops up when you right click a file (on windows) I want it to open a DOS … | |
I just need help understanding how DOS and BASH handle globs. All I ever see is the output but it's not giving me any knowledge on the whole process. How does dir * interpret the wildcard differently then ls *? |
The End.