Sponsored Content
Top Forums Shell Programming and Scripting Need to run source .bashrc everytime Post 302090064 by kalyanraj on Friday 22nd of September 2006 09:06:47 AM
Old 09-22-2006
hi,

I modified my ~/.profile file and it worked for me.

Thanks,
Kalyan
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Makefile relinks everytime

Hi guys, I'm a firsttime poster. My makefile is relinking everytime, even if nothing changes. Is there anyway to have it stop doing this? Here the makefile: F77C = /usr/bin/f77 -O VERSION =9.4 VPATH = ../poten # executables that can be built from this makefile OH3S =... (10 Replies)
Discussion started by: bellings
10 Replies

2. UNIX for Dummies Questions & Answers

backing up file everytime script run and saving other backups

how would i go about creatng a backup of a file everytime a script is run so that the next time it is run the old backup gets pushed back and the most recent backup is 1st. (new)backup.1 (old)backup.2 that kind of idea?? (4 Replies)
Discussion started by: knc9233
4 Replies

3. UNIX for Dummies Questions & Answers

Why does my webserver stop everytime I exit my session?

Hi, We have a webserver which runs on our unix server, we had to stop it for some work to be carried out, and restarted it earlier this week. I'm logging in as myself and then root and starting the webserver as follows: cd /etc/init.d ./northgate.web start this starts it up fine,... (6 Replies)
Discussion started by: kenny123m
6 Replies

4. UNIX for Dummies Questions & Answers

.bashrc file is an initialization file run by each interactive invocation

I search the web and found the following statements ..... The /etc/profile file is a system wide initialization script which is run at login time for each user, while .profile is the users own login initialization. The .bashrc file is an initialization file run by each interactive invocation... (1 Reply)
Discussion started by: cy163
1 Replies

5. Programming

I have C++ exe file( no source code) and need to run many large dataset under unix, b

I have C++ exe file( no source code) and need to run many large dataset under unix, but how to know the memeroy usage for one dataset?http://www.codeproject.com/script/Forums/Images/New.gif I think "top" is not good and if using the profiler, it seems no free download, any ideas? (1 Reply)
Discussion started by: Danielwang1986
1 Replies

6. Shell Programming and Scripting

How to make a script to run everytime a new file is copied into a directory??

Hi folks I have a unix script script1 in a directory folder1 and also I have few input log files in this directory. My input log files will be copied into this directory folder1 from the portable thumb drive. Now what I want is I need to run this script1 whenever any new file is copied... (2 Replies)
Discussion started by: ks_reddy
2 Replies

7. Shell Programming and Scripting

Run Script in K Shell using Source

Hi While running a Shell Script in a K Shell using the source command source <script_name> It gives the error .. source: not found. Null message body; hope that's ok Is it that the source command does not work in K Shell. It works well in bash shell. (2 Replies)
Discussion started by: harneet2004us
2 Replies

8. UNIX for Dummies Questions & Answers

Script run everytime a new terminal window is opened

I created a script called title #!/bin/sh echo "^0;$*^G" It will change the terminal window titlebar to what ever I type after the script (title BIG would change titlebar to BIG instead of terminal) Is there a way to make it run so it will work on every terminal window that gets opened.... (1 Reply)
Discussion started by: amason0508
1 Replies

9. Shell Programming and Scripting

To move multiple files to a new folder everytime

Hi , Below is the scenario A.txt B.txt C.csv .......... i want to move all the above files in to a new path & new folder .This folder is created based on date(for ex: today's fodler name will be 20120222).for Everyday move a new folder based on date has to be created & this folder... (1 Reply)
Discussion started by: jagadeeshn04
1 Replies

10. Shell Programming and Scripting

Ksh: Test UNIX command without $? everytime

Hello all, working on Solaris 10 in ksh. Basicly, in my function, i'm trying to test that all my unix cmd's are true (exit status 0) else you flag the rcControlRule to 1 without going into spagetti mode code testing every $? in a if statement. The mdb is probably a little tricky cause it... (3 Replies)
Discussion started by: maverick72
3 Replies
COLORDIFF(1)															      COLORDIFF(1)

NAME
colordiff - a tool to colorize diff output SYNOPSIS
colordiff [diff options] [colordiff options] {file1} {file2} DESCRIPTION
colordiff is a wrapper for diff and produces the same output as diff but with coloured syntax highlighting at the command line to improve readability. The output is similar to how a diff-generated patch might appear in Vim or Emacs with the appropriate syntax highlighting options enabled. The colour schemes can be read from a central configuration file or from a local user ~/.colordiffrc file. colordiff makes use of ANSI colours and as such will only work when ANSI colours can be used - typical examples are xterms and Eterms, as well as console sessions. colordiff has been tested on various flavours of Linux and under OpenBSD, but should be broadly portable to other systems. USAGE
Use colordiff wherever you would normally use diff, or pipe output to colordiff: For example: $ colordiff file1 file2 $ diff -u file1 file2 | colordiff You can pipe the output to 'less', using the '-R' option (some systems or terminal types may get better results using '-r' instead), which keeps the colour escape sequences, otherwise displayed incorrectly or discarded by 'less': $ diff -u file1 file2 | colordiff | less -R If you have wdiff installed, colordiff will correctly colourise the added and removed text, provided that the '-n' option is given to wdiff: $ wdiff -n file1 file2 | colordiff You may find it useful to make diff automatically call colordiff. Add the following line to ~/.bashrc (or equivalent): alias diff=colordiff Any options passed to colordiff are passed through to diff except for the colordiff-specific option 'difftype', e.g. colordiff --difftype=debdiff file1 file2 Valid values for 'difftype' are: diff, diffc, diffu, diffy, wdiff, debdiff; these correspond to plain diffs, context diffs, unified diffs, side-by-side diffs, wdiff output and debdiff output respectively. Use these overrides when colordiff is not able to determine the diff-type automatically. Alternatively, a construct such as 'cvs diff SOMETHING | colordiff' can be included in ~/.bashrc as follows: function cvsdiff () { cvs diff $@ | colordiff; } Or, combining the idea above using 'less': function cvsdiff () { cvs diff $@ | colordiff |less -R; } Note that the function name, cvsdiff, can be customized. FILES
/etc/colordiffrc Central configuration file. User-specific settings can be enabled by copying this file to ~/.colordiffrc and making the appropriate changes. colordiffrc-lightbg Alternate configuration template for use with terminals having light backgrounds. Copy this to /etc/colordiffrc or ~/.colordiffrc and customize. BUGS
Bug reports and suggestions/patches to <davee@sungate.co.uk> please. AUTHOR
colordiff is written and maintained by Dave Ewart <davee@sungate.co.uk>. This manual page and the source XML was written by Graham Wilson <graham@mknod.org> for Debian and is maintained by the author. Dave Ewart maintains the Debian package. 01/25/2009 COLORDIFF(1)
All times are GMT -4. The time now is 06:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy