02-15-2012
Assignment Help
1. List commands
to create the directory hierarchy $HOME/a/b/c
in vi to replace all occurences of TMP with tmp in lines 1 through 10
in vi to replace first occurence of CPU_file with DISK_file at line 15
2. Explain with a very simple example, usage of "ls -a"
3. What do the following commands do
a. ls -ls / > /tmp/ls_list
b. more /etc/passwd > /tmp/opl
c. find $HOME -type f > $HOME/files_list
d. find /tmp > /tmp/abc
4. Evaluate
$ FILE=pwd
$ echo $FILE --> What will this print ?
$ FILE=$HOME
$ cd $HOME/project --> what does this do ?
5. chmod command has an option -R. What is its purpose,
Explain with an example. (create needed files etc. in your homedirectory
to explain this)
Help me
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
my lecturer want to do an assignment about telnet server..first, he want us to download the telnet server..then he want we do about copy files and share files by using the telnet server....what is that??? and one more thing is how to do 'ping'???? (1 Reply)
Discussion started by: amelia
1 Replies
2. What is on Your Mind?
All Sys Administrators,
With due respect I would like to know what should be BEST Things to
do when LEAVING one job , and what Precaution MUST be taken
while taking over new JOB?? Please Discuss in detail the STEP to be
taken for both the TIME ?? (3 Replies)
Discussion started by: vakharia Mahesh
3 Replies
3. Shell Programming and Scripting
Hi all
How do I assign a pattern to a variable after a match is found using a regular expression in PERL?
For example using a regular expression (RE) and matching as given
if ($_ =~ /(?:\s*+\s*,)*\s*+\s*/)
I want to assign the pattern matched by the RE to a variable.
e.g. given the... (4 Replies)
Discussion started by: my_Perl
4 Replies
4. Shell Programming and Scripting
Hi,
In AIX I have a variable with , (coma) separated values assigned to it like shown below
var1=apple,boy,chris
i want to convert this to
var1='apple','boy','chris'
the number of values assigned to var1 might change and it could be from 1 to n
any suggestions please? (3 Replies)
Discussion started by: rahul9909
3 Replies
5. Homework & Coursework Questions
Continue here (0 Replies)
Discussion started by: vpundit
0 Replies
6. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
# Create a BASH shell script called momo (My Own Music Organizer)
# in ~/uli101.a2/ directory according to the... (9 Replies)
Discussion started by: Lunatic449447
9 Replies
7. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
Hey there, I am currently working on an assignment which is due in on Monday 5th December and I am close to completing it, however there are two sections of the program I am running in which I am confused by.
Basically I have created... (1 Reply)
Discussion started by: SilvarHawke
1 Replies
8. Shell Programming and Scripting
Q-1
Write a shell script in Unix that lists files from your current working directory
· By modification time when called with lm
· By access time when called with la.
By default, the script should show the listing of all the files in the current directory.
Q-2
Write a... (1 Reply)
Discussion started by: Vishank Parikh
1 Replies
9. Homework & Coursework Questions
Q-1
Write a shell script in Unix that lists files from your current working directory
· By modification time when called with lm
· By access time when called with la.
By default, the script should show the listing of all the files in the current directory.
Q-2
Write a shell script which... (1 Reply)
Discussion started by: Vishank Parikh
1 Replies
10. UNIX for Dummies Questions & Answers
Hello all im currently working on this assignment and a little stump on how to check for an argument heres the instructions:
Step 4:
Modify your script so that if there is an argument called TestError you display the following error message with your usage statement.
TestError found
Example:... (1 Reply)
Discussion started by: bsn3971
1 Replies
LEARN ABOUT CENTOS
git-merge-file
GIT-MERGE-FILE(1) Git Manual GIT-MERGE-FILE(1)
NAME
git-merge-file - Run a three-way file merge
SYNOPSIS
git merge-file [-L <current-name> [-L <base-name> [-L <other-name>]]]
[--ours|--theirs|--union] [-p|--stdout] [-q|--quiet] [--marker-size=<n>]
<current-file> <base-file> <other-file>
DESCRIPTION
git merge-file incorporates all changes that lead from the <base-file> to <other-file> into <current-file>. The result ordinarily goes into
<current-file>. git merge-file is useful for combining separate changes to an original. Suppose <base-file> is the original, and both
<current-file> and <other-file> are modifications of <base-file>, then git merge-file combines both changes.
A conflict occurs if both <current-file> and <other-file> have changes in a common segment of lines. If a conflict is found, git merge-file
normally outputs a warning and brackets the conflict with lines containing <<<<<<< and >>>>>>> markers. A typical conflict will look like
this:
<<<<<<< A
lines in file A
=======
lines in file B
>>>>>>> B
If there are conflicts, the user should edit the result and delete one of the alternatives. When --ours, --theirs, or --union option is in
effect, however, these conflicts are resolved favouring lines from <current-file>, lines from <other-file>, or lines from both
respectively. The length of the conflict markers can be given with the --marker-size option.
The exit value of this program is negative on error, and the number of conflicts otherwise. If the merge was clean, the exit value is 0.
git merge-file is designed to be a minimal clone of RCS merge; that is, it implements all of RCS merge's functionality which is needed by
git(1).
OPTIONS
-L <label>
This option may be given up to three times, and specifies labels to be used in place of the corresponding file names in conflict
reports. That is, git merge-file -L x -L y -L z a b c generates output that looks like it came from files x, y and z instead of from
files a, b and c.
-p
Send results to standard output instead of overwriting <current-file>.
-q
Quiet; do not warn about conflicts.
--ours, --theirs, --union
Instead of leaving conflicts in the file, resolve conflicts favouring our (or their or both) side of the lines.
EXAMPLES
git merge-file README.my README README.upstream
combines the changes of README.my and README.upstream since README, tries to merge them and writes the result into README.my.
git merge-file -L a -L b -L c tmp/a123 tmp/b234 tmp/c345
merges tmp/a123 and tmp/c345 with the base tmp/b234, but uses labels a and c instead of tmp/a123 and tmp/c345.
GIT
Part of the git(1) suite
Git 1.8.3.1 06/10/2014 GIT-MERGE-FILE(1)