10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am using the following code to fetch lines that are generated in last 1 hr . Hence, I am using date function to calculate -last 1 hr & the current hr and then somehow use awk (or sed-if someone could guide me better)
with some regex pattern.
dt_1=`date +%h" "%d", "%Y\ %l -d "1 hour... (10 Replies)
Discussion started by: sarah-alikhan31
2. Shell Programming and Scripting
I want to search 2 lines from the file. I wanted to display all such matches. Example file:
Testfile is test
testing the file string
to do testing
I wanted to search the file with 2 lines
TEST1... (3 Replies)
Discussion started by: balareddy
3. Shell Programming and Scripting
I have a log file where every line starts with a time stamp. I have to extract lines from the file within a given time stamp.
IF the file is like this:
2012-08-19 10:34:03,446|WebContainer : 56|OrderHeaderDaoImpl|findByKeys|26|
2012-08-20 11:34:03,463|WebContainer :... (8 Replies)
Discussion started by: abhinalluri
4. Shell Programming and Scripting
HI group members
I am new in unix
I want to search # symbol in a file.
if found need to delete the entire row in the file.
need to move the actual data(with out # symbol data) to another file.
Thanks (2 Replies)
Discussion started by: pmreddy
5. Shell Programming and Scripting
Hi, i would really appreciate any help anyone can give with the following info.
Thanks in advance.
I need to run a search on a file that contains thousands of trades, each trade is added into the file in blocks of 25 lines. i know the search has to take place between a time stamp specified... (4 Replies)
Discussion started by: sp3arsy
6. UNIX for Dummies Questions & Answers
I am trying to search for lines present in file a that do not exist in file b and print out the lines. E.g.
would output to stdout: pear.
... (3 Replies)
Discussion started by: thurmc
7. Shell Programming and Scripting
I have a file like this
3.img (7 Replies)
Discussion started by: avatar_007
8. Shell Programming and Scripting
I've searched through the scripting section but could not find what I need.
I need to search for empty sections within a file and remove them.
Here is an example file:
Y (4 Replies)
Discussion started by: leepet01
9. Shell Programming and Scripting
I need to check if following three files exist in a file, how to do that in shell script:
1. ALL MACHING RECORD COLUMNS MATCHED (Baseline and Regression File)
2. Total Mismatched Records (Baseline File): 0
3. Total Mismatched Records (Regression File): 0
Currently I am seaching only... (9 Replies)
Discussion started by: shalua
10. Shell Programming and Scripting
i want to make a script to search the file contents in my home directory by a given date and output me the line that has the date... (10 Replies)
Discussion started by: psychobeauty