05-03-2013
UNIX ques!! Ans URGENT!!
hello guys!! need 1 favour from u all..
Can u jst tell me the answers for these ques??
1. ls - l _____ : command to return all files that end with single digit and those with TXT extension
2. ls -l report* _______ : command to return all files that start with the word RPT except those with LOG extension
3. LPR _______ : command to print the result of diff log1 log2
Am not exposed to unix and so finding thes questions tuf. Please do help me out!! URGENT!! Thx u al..
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
If a file is compressed, how can i uncompress on the fly using pipes(handling this in the shell script depending on the command line arguments passed to the script)
ex: ex_pr.sh -d disable -f ex_pr_1212.log.Z (6 Replies)
Discussion started by: dreams5617
6 Replies
2. UNIX for Dummies Questions & Answers
Hi all,
I need few information as follows:
1. I am acessing one the machine uismg putty at port no 12023 using telnet service.
My question is i heard by defalult the port for telnet is 23. Why it is 12023 in my case. Also where can i change it.
2. i install new debian server. And then... (1 Reply)
Discussion started by: gauri
1 Replies
3. Shell Programming and Scripting
In the Text file ex sample.txt
cat sample.txt
morning
evening
night
bye
__________________
i want add text "Good " i front of all the words .
u have to use one vi command only
or
u can write script also
o/p should be like this
cat sample.txt
Good morning
Good evening (7 Replies)
Discussion started by: premnathk
7 Replies
4. UNIX for Advanced & Expert Users
hi,
could any one tell me what is diff between
#ls
and
#xrgs ls (1 Reply)
Discussion started by: useless79
1 Replies
5. UNIX for Dummies Questions & Answers
i have couple of my assignment questions
What command results in adding today's date and time to the file yesterday.txt
What command results in creation of a new file named yesterday.txt that contains yesterday's date but no time (3 Replies)
Discussion started by: doomed47
3 Replies
6. Shell Programming and Scripting
Hello...
Im trying to use "- " as field separator...
I used awk -F"- " '{print $3}' input_file ... but it's not working, it assumes that the field separator is "-" and not "- " ...
Any ideas ?? :(
Thanks (6 Replies)
Discussion started by: yahyaaa
6 Replies
7. UNIX for Dummies Questions & Answers
hy guys
I got a ques
I cant acess root, i tried to fsck it, but gets errors to read file systems. What steps do you take to recover the host before you see if there is any data corruption on the root drive?
Regards
Charneet (1 Reply)
Discussion started by: charneet
1 Replies
8. UNIX for Dummies Questions & Answers
hi,
Can someone tell me what commands do you use to start service back upin solaris ?
Regards
Charneet (1 Reply)
Discussion started by: charneet
1 Replies
9. Shell Programming and Scripting
HI
I'm gaving trouble to do that script in awk. I would like to compute the mean of two colomns from two diffent files just like that
file 1
4 1
5 2
6 3
file 2
1 1
2 2
3 3 (3 Replies)
Discussion started by: yassinegoth
3 Replies
bdiff(1) General Commands Manual bdiff(1)
NAME
bdiff - Finds differences in large files
SYNOPSIS
bdiff file1 file2 [number] [-s]
bdiff - file2 [number] [-s]
bdiff file1 - [number] [-s]
The bdiff command compares file1 and file2 and writes information about their differing lines to standard output. If either filename is -
(dash), bdiff reads standard input.
OPTIONS
Suppresses error messages. (May either precede or follow the number argument if it is specified.)
DESCRIPTION
The bdiff command uses diff to find lines that must be changed in two files to make them identical (see the diff command). Its primary
purpose is to permit processing of files that are too large for diff.
The bdiff command ignores lines common to the beginning of both files, splits the remainders into sections of number lines, and runs diff
on the sections. The output is then processed to make it look as if diff had processed the files whole.
If you do not specify number, a system default is used. In some cases, the number you specify or the default number may be too large for
diff. If bdiff fails, specify a smaller value for number and try again.
Note that because of file segmenting, bdiff does not necessarily find the smallest possible set of file differences. In general, although
the output is similar, using bdiff is not the equivalent of using diff.
NOTES
The diff command is executed by a child process, generated by forking, and communicates with bdiff through pipes.
It should not normally be necessary to use this command, since diff can handle most large files.
EXIT STATUS
No differences. Differences found. An error occurred.
SEE ALSO
Commands: diff(1), diff3(1)
bdiff(1)