Sponsored Content
Full Discussion: Detect changes in a file
Top Forums Shell Programming and Scripting Detect changes in a file Post 302307174 by ghostdog74 on Tuesday 14th of April 2009 08:54:28 PM
Old 04-14-2009
you can use tools like md5sum, md5,sha1 to check for changes. as for who did it, one of the ways is to turn on auditing on your platform.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Unix script to detect new file entry in directory

Hi All, I want to detect each new file coming / getting created in unix directory. When every new file came to directory, i have to get its details like its size , date and time stamp and store it into another file. Could any one please tell me , how i can achieve that? Thanks. (13 Replies)
Discussion started by: james_1984
13 Replies

2. UNIX for Dummies Questions & Answers

detect file size then quit or continue

Hi Guys, I'm running a cron that mails me a file every night. The file is based on form input from the web and each evening after I mail it I delete and start a new file by the same name. It's a csv file so I preload a line of headers into the file. So far, so good. On days when no one inputs... (5 Replies)
Discussion started by: steven99
5 Replies

3. Shell Programming and Scripting

AWK script to detect webpages from file

Hi guys I'm very new to unix and I have to create an awk script that detects webpage addresses from a file/webpage and outputs how many times each webpage was detected.e.g. if my file was: (Note: The symbol " was added to stop them being created into links) "www.google.com"... (1 Reply)
Discussion started by: ROFL
1 Replies

4. Shell Programming and Scripting

AWK script to detect webpages from file

Hi guys I'm very new to unix and I have to create an awk script that detects webpage addresses from a file/webpage and outputs how many times each webpage was detected.e.g. if my file was: www.google.com www.facebook.com www.google.com the output should be: www.google.com x2... (2 Replies)
Discussion started by: ROFL
2 Replies

5. Shell Programming and Scripting

Detect duplicated words in file

I have big spooled file which contains thousands of user account Ids. I'd want to find the duplicates of the ids in the file. Say those ids are words with numbers + alphabets, no special characters. We want to detect the duplicates of the words and put the duplicated words in another file. TIA ... (13 Replies)
Discussion started by: gadba
13 Replies

6. UNIX for Advanced & Expert Users

Shell to detect the end of file

Hi. I'm not UNIX expert, I need to do a shell to read a sequential file and show in the console the record numbers read, until the end of file. The reason of this shell is to be sure if the file is not corrupt. Thanks (1 Reply)
Discussion started by: hornam
1 Replies

7. Shell Programming and Scripting

script to detect a file from inserted usb and puts into a Variable

There is a same named log file that I have on my 2 different android phones. When I plug it into my computer, it appears in the media folder, For example the first android phone: /media/F6BA-0AF5/folder/A.log I want to put that into a variable to be manipulated.... (3 Replies)
Discussion started by: tobenguyen
3 Replies

8. Solaris

detect if file is bzip compressed on solaris 10

Hi, I recently tried to create a tar archive on a Solaris 10 machine with gnu tar 1.17 and I used the command gtar -cjf filename.tar file1 file2 directory. The creation was successful but I'm not sure if the file was compressed with bzip as the j option is supposed to do. How can I check that it... (2 Replies)
Discussion started by: olam
2 Replies

9. Shell Programming and Scripting

Script to detect dynamic ip change and update to config file

Hi All, I am newbie here and request your assistance. I have a service running on public ip, but since I have a dynamic IP it keeps on changing and every time I need to manually get the new ip and add to the config file and restart the service. This has become bit time consuming. Hence, I... (4 Replies)
Discussion started by: Shaan_Shaan
4 Replies

10. Shell Programming and Scripting

Detect blank spaces in a CSV file

I'm monitoring a WLAN network to keep track of new SSIDs popping up. The SSIDs are stored along with the AP MAC address and a few other parameters in a CSV file. A typical line could look like this: 18:70:9f:e3:80:aa 10:11:15 MyNetwork 2437 Now, the problem is that some networks use SSIDs... (4 Replies)
Discussion started by: Zooma
4 Replies
BBDIGEST(1)						      General Commands Manual						       BBDIGEST(1)

NAME
bbdigest - calculate message digests SYNOPSIS
bbdigest md5|sha1|rmd160 [filename] DESCRIPTION
bbdigest(1) is a utility to calculate message digests for a file or document. It is used when defining HTTP- or FTP-based content checks, where bbtest-net(1) checks that a URL returns a specific document; instead of having to compare the entire document, the comparison is done against a pre-computed message digest value using the MD5, RIPEMD160, SHA1 or any of the SHA2 (SHA-512, SHA-256, SHA-384, SHA-224) message digest algorithms. The optional filename parameter is the input file whose message digest should be calculated; if no filename is given, the data is read from standard input. bbdigest outputs a string containing the digest algorithm and the computed message digest. This is in a format suitable for use in the bb- hosts(5) definition of a content check. EXAMPLE
$ bbdigest md5 index.html md5:88b81b110a85c83db56a939caa2e2cf6 $ curl -s http://www.foo.com/ | bbdigest sha1 sha1:e5c69784cb971680e2c7380138e04021a20a45a2 SEE ALSO
bbtest-net(1), bb-hosts(5) Xymon Version 4.2.3: 4 Feb 2009 BBDIGEST(1)
All times are GMT -4. The time now is 08:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy