To find a value in atext file using powershell

 
Thread Tools Search this Thread
Special Forums Windows & DOS: Issues & Discussions To find a value in atext file using powershell
# 1  
Old 02-25-2014
To find a value in atext file using powershell

Hi All,

i have a VB script which help me in downloading the text file(mail attachment) to my local drive from outlook.i want to check some values in the text file. for ex

A
date1 count count miss
2/25/2014 42 42 0

B
date2 count count miss
2/25/2014 78 78 0

i want to check weather the value in "miss" is 0. please help me with this
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Running Powershell Script from Linux through Cygwin

Hello Experts, I am creating a run time powershell script on Linux machine and copying that powershell script to Windows machine. To connect to windows through "ssh", I am using Cygwin tool. To make the connection password less I copied my public in authorized_keys in windows Administrator... (5 Replies)
Discussion started by: shekhar_4_u
5 Replies

2. UNIX for Beginners Questions & Answers

Using powershell on win10 to invoke bash

Hi Guys, I am trying to run flyway command on ubuntu. on windows command line is simple : C:\Users\admin\Downloads\flyway-commandline-5.0.7-windows-x64\flyway-5.0.7> flyway migrate how can i do it via bash? i tied to use mnt command but starting flyway is not possible. Please... (22 Replies)
Discussion started by: jaryszek
22 Replies

3. Shell Programming and Scripting

Execute powershell script with UNIX

Hi I have a powershell script which is checking whether a windows service is running (as shown below) function FuncCheckService { $ServiceName = 'pgsql-9.2' $arrService = Get-Service -Name $ServiceName if ($arrService.Status -eq 'Running') { Write-Output... (8 Replies)
Discussion started by: simpsa27
8 Replies

4. Shell Programming and Scripting

Powershell script to monitor windows process

Hello Friend, I am not expert in power shell scripting. I nee custom powershell script which check if given process is running on windows machine or not. will use it in nagios to monitor that process. (0 Replies)
Discussion started by: ghpradeep
0 Replies

5. Windows & DOS: Issues & Discussions

Powershell + office 365

Hello ! I am looking for powershell guys. I have lot of office365 users ,and i need add/remove calendar items from powershell. my users have multiple calendars. how can i select calendar ,and how can i add / remove item to selected calendar. PS C:\appl\o365calendar> get-mailboxfolder... (0 Replies)
Discussion started by: zoldkovacs
0 Replies

6. Windows & DOS: Issues & Discussions

Help with PowerShell

I am very not knowledgeable with regards to Windows, and even more so with PowerShell, but I'm hoping someone can help me with what should be a fairly simple script. Remove all local accounts matching a given regular expression It seems like I'd need the following combined... Somehow... ... (0 Replies)
Discussion started by: Vryali
0 Replies

7. Windows & DOS: Issues & Discussions

Powershell Script Help

Need some help getting this script to work. can someone help. I am trying to create a script that moves log files to another location and only keeps 60 days worth. please see script I started but having issue getting to work.. $TODAY=GET-DATE GET-CHILDITEM C:\test\*.LOG | Where {... (9 Replies)
Discussion started by: freedavis
9 Replies

8. Windows & DOS: Issues & Discussions

Does PowerSHell have *stat command analogs?

I.e. like vmstat, cpustat, iostat, fsstat, kstat ..etc? (1 Reply)
Discussion started by: Xcislav
1 Replies
Login or Register to Ask a Question
AMMT(8) 						      System Manager's Manual							   AMMT(8)

NAME
ammt - Amanda version of mt SYNOPSIS
ammt [ -d ] [ -f|-t device ] command [ count ] DESCRIPTION
Ammt provides just enough of the standard mt command for the needs of Amanda. This is handy when doing a full restore and the standard mt program has not yet been found. Ammt also provides access to the Amanda output drivers that support various tape simulations. See the amanda(8) man page for more details about Amanda. See the OUTPUT DRIVERS section of amanda(8) for more information on the Amanda output drivers. OPTIONS
-d Turn on debugging output. -f device Access tape device device. If not specified, the TAPE environment variable is used. -t device Same as -f. command count Which command to issue, and an optional count of operations. COMMANDS
Each command may be abbreviated to whatever length makes it unique. eof|weof count Write count (default: 1) end of file marks (tapemarks). fsf count Skip forward count (default: 1) files. bsf count Skip backward count (default: 1) files. asf count Position to file number count (default: 0) where zero is beginning of tape. This is the same as a rewind followed by a fsf count. rewind Rewind to beginning of tape. offline|rewoffl Rewind to beginning of tape and unload the tape from the drive. status Report status information about the drive. Which data reported, and what it means, depends on the underlying operating system, and may include: ONLINE Indicates the drive is online and ready. OFFLINE Indicates the drive is offline or not ready. BOT Indicates the drive is at beginning of tape. EOT Indicates the drive is at end of tape. PROTECTED Indicates the tape is write protected. ds Device status. er Error register. fileno Current tape file number. blkno Current tape block number file. NOTE: many systems only report good data when a tape is in the drive and ready. AUTHOR
Marc Mengel <mengel@fnal.gov> John R. Jackson <jrj@purdue.edu> SEE ALSO
amanda(8) AMMT(8)