03-27-2010
Display File
I have a file xx like this
abc
abcd
abc
abcd
abcd
efgh
ijkl
mnop qrst
uv wxyz
Now I want to search for "abcd". After the last found, it will display the remaining of the file. So here I am expecting something like
abcd
efgh
ijkl
mnop qrst
uv wxyz
Thanks for your help!
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a file xx like this
abc
abcd
abc
abcd
abcd
efgh
ijkl
mnop qrst
uv wxyz
Now I want to search for "abcd". After the last found, it will display the remaining of the file. So here I am expecting something like
abcd
efgh
ijkl
mnop qrst
uv wxyz (2 Replies)
Discussion started by: joy_deep
2 Replies
2. Programming
I am making a program in c. I want the progrm to be able to display file names ( like in unix we do long lisiting)
what should i do?
Any help will be appreciated (3 Replies)
Discussion started by: programlover
3 Replies
3. Shell Programming and Scripting
Hi,
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which contains rubbish information just to fill the page which is of no use. this is... (3 Replies)
Discussion started by: abinash
3 Replies
4. Shell Programming and Scripting
*****************************************
Right now i have this current system.
I have two files say xxx.txt and yyy.txt. xxx.txt is with list of patterns within double quotes. Eg.
"this is the line1"
"this is the line2"
The yyy.txt with lot of lines. eg:
"This is a test message which... (7 Replies)
Discussion started by: abinash
7 Replies
5. 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:
I have a directory called "Month" which has 12 files named on months.
/home/months> touch Jan Feb Mar Apr May... (6 Replies)
Discussion started by: manishdivs
6 Replies
6. Shell Programming and Scripting
How to add these all ( 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25) in the script and How to calculate the GPA?? :wall:
For example a course record file can be like this:
COURSE NAME: Operating Systems
CREDITS: 4
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25
243567 0 1 1 0 1 1 0 1 0 0 0 7 9 12 15 17 15... (1 Reply)
Discussion started by: poonam29
1 Replies
7. Homework & Coursework Questions
How to add these all ( 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25) in the script and How to calculate the GPA?? :wall:
For example a course record file can be like this:
COURSE NAME: Operating Systems
CREDITS: 4
123456 1 1 0 1 1 0 1 0 0 0 1 5 8 0 12 10 25
243567 0 1 1 0 1 1 0 1 0 0 0 7 9 12 15 17 15... (1 Reply)
Discussion started by: poonam29
1 Replies
8. Shell Programming and Scripting
I am new to shell scripting plz help me to get solution for below requirement -
If name.sh file is present, message will be displayed as “name.sh is present” else "name.sh is not present"
I have tested below script but getting error.
#!/bin/ksh
file_found=`ls name.sh`
found=`echo $?`
if... (6 Replies)
Discussion started by: rahulbahulekar
6 Replies
9. Shell Programming and Scripting
Hi All,
I need to recursively grep several folders for a MAC address and display the results with the date of the file name at the start. Even better would be if the final results were displayed chronologically so the newest file is always at the end. Oldest at the top, regardless of what... (8 Replies)
Discussion started by: quemalr
8 Replies
LEARN ABOUT MOJAVE
backlightdtester
BacklightdTester(1) BSD General Commands Manual BacklightdTester(1)
NAME
BacklightdTester, Other_name_for_same_program(), Yet another name for the same program. -- This line parsed for whatis database.
SYNOPSIS
BacklightdTester, [-abcd] [-a path] [file] [file ...] arg0 arg2 ...
DESCRIPTION
Use the .Nm macro to refer to your program throughout the man page like such: BacklightdTester, Underlining is accomplished with the .Ar
macro like this: underlined text.
A list of items with descriptions:
item a Description of item a
item b Description of item b
A list of flags and their descriptions:
-a Description of -a flag
-b Description of -b flag
FILES
/usr/share/file_name FILE_1 description
/Users/joeuser/Library/really_long_file_name FILE_2 description
SEE ALSO
a(1), b(1), c(1), a(2), b(2), a(3), b(3)
Darwin May 31, 2019 Darwin