Search Results

Search: Posts Made By: smkremer
1,502
Posted By smkremer
Grep Commands
I have a text file that has multiple lines in it with multiple dates and years. I was trying to figure out the best way to remove the line that had 2010 and 2011 to an archive file. We only need to...
5,153
Posted By smkremer
I think I tried that and it gave me an error:...
I think I tried that and it gave me an error: test: unknown operator ==
5,153
Posted By smkremer
Test: argument expected
The following example prompts are passed into the shell script.
$1 = /tmp/dir/
$2 = varies (test.txt, test1.txt, test2.txt...)
$3 = test_YYYYMMDD.txt...
22,240
Posted By smkremer
Error
I get the error mentioned below when I try this:

find /path/to/file -name 'file_*.lis' -daystart -mtime 0


find: bad option -daystart
find: [-H | -L] path-list predicate-list
Any ideas? ...
22,240
Posted By smkremer
Shell Scripting: Copy Files with Today's date
I was wondering the best way about finding files that were created today and copy them to a directory (grep ?). There can be multiple files for todays date or none. I am looking to copy all of the...
5,074
Posted By smkremer
Exit Status
I have a shell script (#!/bin/sh) that interacts with Appworx and Banner Admin. In my script I want to check the exit status of awrun before continuing. awrun can run for 10 seconds or it can run for...
10,534
Posted By smkremer
I am new to this type of programming so I don't...
I am new to this type of programming so I don't know the full details. I currently have a job in Appworx (UC4 Job Scheduling) that calls a shell script (#!/bin/sh) which processes information...
10,534
Posted By smkremer
Get file extension with multiple dots
I am trying to get the file extension with file names that could contain multiple dots using shell scripting. I want to find a way using the sed command.

Example Filenames:
one.dat
one.dat.002...
Showing results 1 to 8 of 8

 
All times are GMT -4. The time now is 04:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy