Search Results

Search: Posts Made By: erin00
5,822
Posted By erin00
I'm not sure if this is what you meant but I am...
I'm not sure if this is what you meant but I am using AIX 7.1. I am getting the error below:
date: 0551-402 Invalid character in date/time specification.
Usage: date [-u] [+"Field Descriptors"]
...
5,822
Posted By erin00
Grep a log file starting from a specific time to the end of file
I have a log file which have a date and time at the start of every line.

I need to search the log file starting from a specific time to the end of file.

For example:
Starting point: July 29...
2,194
Posted By erin00
Align columns
I have a text file that I filtered using awk. I only exctracted two columns.

I want those two columns to be aligned. Most of the answers I found was to use `column -t` command. I tried that but...
1,387
Posted By erin00
Script still running after ssh
I have the lines below on my script:

script.ksh:


case `hostname` in
some_host)
ssh server1A "/home/script.ksh $1 $2"
ssh server1B "/home/script.ksh $1 $2"
...
2,086
Posted By erin00
will the command "/home/dir/script.ksh $1 $2 $3...
will the command "/home/dir/script.ksh $1 $2 $3 still run properly in ser2? and will it still ssh to in ser3 and ser4?
2,086
Posted By erin00
ksh - keep argument variables after ssh
i have a script that should ssh to different host/server. See below:

./script.ksh var1 var2 var3
case $ser in
ser1)
depo='appr1'
set -A aprrA aprrB
ssh ser2...
11,707
Posted By erin00
Thanks!
Thanks!
11,707
Posted By erin00
Yeah, i figured that when i was testing it...
Yeah, i figured that when i was testing it thoroughly.
11,707
Posted By erin00
Well, this is great, but it does'nt allow times...
Well, this is great, but it does'nt allow times like 19:00:00 (because of [0-2][0-4].
11,707
Posted By erin00
this ain't working. `(' is not expected.
this ain't working. `(' is not expected.
11,707
Posted By erin00
This works the same as the code above, but how...
This works the same as the code above, but how can I exit the script if the time is invalid
11,707
Posted By erin00
Check if time format is valid
How can I validate if time (HH:MM:SS) argument is valid? I got this from web but I can't modify it to exit the script if the time argument is invalid.

echo $1 | awk -F ':' '{ print ($1 <= 23 &&...
3,399
Posted By erin00
Compare two time (HH:MM:SS) - ksh
Is it possible to compate two time (24-hour format)?

What I need is to just check if the first time is earlier than the second time.

ex:

./script.ksh 09:30:15 13:00:34 = okay
...
2,177
Posted By erin00
Echo a colored text with tabs
I have the line below to echo values with tab between them. The text is also colored, however, some\t does not work.

The output of this one below will have the first two \t not working.
echo...
1,933
Posted By erin00
UNIX Memory
what is the difference between cached and buffer memory?

can i use either buffer or cached memory if i want to run an application?
3,065
Posted By erin00
well, I have this script that produces some kind...
well, I have this script that produces some kind of list, after generating the list as .csv file, I want this file to be available at my windows home directory. So before exiting the script I want...
3,065
Posted By erin00
Copy one file from a server to a local folder
Hi,

Is there a way I can copy a file from a server to a local folder (i.e. My Documents)? can it be done by scp?

I tried this but it just rename the file as the folder it has to be transferred...
9,707
Posted By erin00
"goto" like command in UNIX
Hi,



echo "yes or no?"
read ans

case $ans in

[yY]*)
echo "yes"
;;

[nN]*)
echo "no"
;;

*)
echo "yes or no only"
#here, if the answer is not "Y" or "N", I want to go back...
1,254
Posted By erin00
may I ask what is the difference between a list...
may I ask what is the difference between a list and an array?
1,254
Posted By erin00
Is this an array?
Hi there,

I am currently looking at an existing script that have something like this:


variable='val1 val2 val3 val4'


Is this another way of setting an array? If not, what is it?
...
4,025
Posted By erin00
maybe something like this... ...
maybe something like this...


location=/home/myhome/dir

case $stuff in
$location/folder1)
#do something here
;;
$location/folder2)
#do something here
...
4,025
Posted By erin00
Check if folder exist using case
Is it possible to use case when checking if a folder exist?

I need to check if these folder exist [5 folders to be exact]. All of them could be present but I still need to check. If a folder is...
17,159
Posted By erin00
Convert From Month Number to Month Name
Hi,

I have a script that accepts an input date from the user in yyyy-mm-dd format.

I need to get the mm-dd part and convert it to month name.

example:

2011-11-15

I want that to...
1,679
Posted By erin00
Store the name of an extracted file to a temp file
What would be the best way to store the name of an extracted file from a tar to a text file?

I want to extract one file from a tar and store the name of the extracted file to a temp file.

tar...
7,856
Posted By erin00
I'm pretty sure the file name does match
I'm pretty sure the file name does match
Showing results 1 to 25 of 42

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