Skip to main content

All Questions

Tagged with
-1 votes
1 answer
134 views

How to grep in a file using upper and lower values from another file in unix

I would like to ask how to grep in a certain file that contains filenames, criteria for grep will come from another file. Example: fileA.txt contains: newFile0001_1573001341083_123_0.txt ...
dcdum2018's user avatar
0 votes
1 answer
392 views

get number of lines which has particular record from last hour log

I need to get number of lines which has particular record from last hour log . log record looks like this. 09:28:03.155 [pool-2-thread-1030]-Rcvd msg {src='90000000',dst='101',msg='2500FREE',trxId='...
Prabash's user avatar
  • 65
4 votes
4 answers
441 views

Generate line number / "index" within a range from a date seed value

I'm trying to create a bash script to display a word of the day (random for each day). I have a dictionary file that on each line has a word and its definition. I'd like to use date to get a unique ...
CS Student's user avatar
0 votes
2 answers
160 views

How can I search filenames which are starting with xy_* and are created/edited today?

Hello I´m currently trying to search for logfiles which are starting with xy_Number and are created/edited today(not last 24 hrs). I tried: find /home/USER/logfilesError/ -maxdepth 1 -type f -...
BlueFox's user avatar
  • 121