Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

monthly calculation

Featured Replies

  • Newbies

pls can anyone help me with this script, the script is below, i need the script to get the previous month result every new month , the problem is that the loop has to be automated to always calculate for previous month .

a=`date "+%Y"` #this year to be used

b=$(date "+%Y%m" --date='49 days ago') #previous month with year to be used

for i in 49 48 47 46 45 44 43 42 41 40 39 38 37 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19

do

g=$(date "+%Y%m%d" --date=''$i' days ago') # n days ago to be used

h="lic"$g*405*.txt #the file name

cd /home/file/lic$a/$b #the directory

#---------- Count information----------#

cat $h|awk -F '|' '$4 ~ /^700[0]/ && $9 == '0' { print $0 }'|awk -F '|' '{ b = count[$1]++; }''{ print b }' >> result$b.txt

done

Edited by Guest

FileMaker 3 on Linux? Please explain what you want to accomplish and clarify your version/platform.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.