10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Dear Experts,
I have a log file that contains a timestamp, I would like to filter record from that file based on timestamp. For example refer below file -
cat sample.txt
Jan 19 20:51:48 mukul-Vostro-14-3468 systemd: pam_unix(systemd-user:session): session opened for user root by (uid=0)... (6 Replies)
Discussion started by: mukulverma2408
6 Replies
2. Shell Programming and Scripting
I wrote an awk script to filter "uninteresting" commands from my ~/.bash_history (I know about HISTIGNORE, but I don't want to exclude these commands from my current session's history, I just want to avoid persisting them across sessions).
The history file can contain multi-line entries with... (6 Replies)
Discussion started by: ivanbrennan
6 Replies
3. Shell Programming and Scripting
To delete log files content older than 30 days and append the lastest date log file date in the respective logs
I want to write a shell script that deletes all log files content older than 30 days and append the lastest log file date in the respective logs
This is my script
cd... (2 Replies)
Discussion started by: sreekumarhari
2 Replies
4. Shell Programming and Scripting
Gents,
I have lot of files in a folder where each file name includes the date of generation, then I would like to merge
all the files for each date in a complete file.
list of files in forder.
dsd01_121104.txt
dsd01_121105.txt
dsd01_121106.txt
dsd03_121104.txt
dsd03_121105.txt... (7 Replies)
Discussion started by: jiam912
7 Replies
5. Shell Programming and Scripting
Hi
My OS is solaris 64 bit 10, I have many files in a logs directory where we recive 40-50 logs every day. i have last 20 days file present in this directory. I want to move each day file to a particulaar directory whose name is appended with the date of file.
eg
Code:
1.txt file... (1 Reply)
Discussion started by: guddu_12
1 Replies
6. Shell Programming and Scripting
I have an input file which looks like something mentioned below:
======
25/07/2011 05:06:59 : test
======
25/07/2011 05:06:59 : test1
======
25/07/2011 05:08:09 : test2
======
I need to write a script which will take date in the format "25/07/2011 05:07:01" as input and compare it... (1 Reply)
Discussion started by: bhallarandeep
1 Replies
7. Shell Programming and Scripting
I want to filter out the date and time from this line in a file. How to do this using sed command.
on Tue Apr 19 00:48:29 2011 (12 Replies)
Discussion started by: vineet.dhingra
12 Replies
8. Shell Programming and Scripting
Hi All,
I have a log File and i have to make a report in desired format.can anybody help me.........
log file
------
<<<<< BESI14 >>>>>
<RLGAP:CELL=ALL;
CELL CHANNEL GROUP ALLOCATION DATA
CELL CHGR SAS ODPDCHLIMIT
BUNYM18 0 MULTI 100
--------
desired format... (1 Reply)
Discussion started by: dattatraya
1 Replies
9. Shell Programming and Scripting
Hi,
I'm trying to accomplish the following and would like some suggestions or possible bash script examples that may work
I have a directory that has a list of log files that's periodically dumped from a script that is crontab that are rotated 4 generations. There will be a time stamp that is... (4 Replies)
Discussion started by: primp
4 Replies
10. Shell Programming and Scripting
Hi,
I have problem of filtering a log file from my perl script.
#cat /data/pinpe.csv_20070731 | nawk -v FS=, '{print $1','$18','$22','$26}' | grep -w 100 | grep -w 1 | nawk '{print $4}'
Below is the output:
2009-06-16
2009-01-29
2009-06-02
2008-03-05
2007-08-05
2007-09-24... (5 Replies)
Discussion started by: pinpe
5 Replies