Search Results

Search: Posts Made By: schureki
1,096
Posted By schureki
AWK script
Hi,

I would like to create with AWK the following "WORK":-
Input file is

FC4s: IPFC FCP
PortSymb: [34] "Emulex PPN-10:00:00:00:C9:70:2D:31"
NodeSymb: [48] "Emulex LP1050 FV1.92A1...
7,098
Posted By schureki
Here what I get:- # ./test.sh + AA=12:00 +...
Here what I get:-
# ./test.sh
+ AA=12:00
+ + date +%H:%M
CHK=14:54
+ print 14:54
14:54
+ [ 14:54 == 12:00 ]
./test.sh[5]: ==: A test command parameter is not valid.

---------- Post updated...
7,098
Posted By schureki
Getting "A test command parameter is not valid."...
Getting "A test command parameter is not valid." for line "if [ $CHK == $AA ]"
7,098
Posted By schureki
A test command parameter is not valid
Hello,
Getting error "A test command parameter is not valid" when trying to run the code below under /sbin/sh

AA = "12:00"
CHK=$(date +"%H:%M")
if [ $CHK == $AA ]
then
print "Yes"
fi
...
1,566
Posted By schureki
thanks ctsgnb
thanks ctsgnb
1,566
Posted By schureki
Could you please show how the script would be if...
Could you please show how the script would be if on the "Addr name: " line, the line will be "Addr Index:"
so we will have to identify "name" and "Index". I could not figured it up by myself.
...
1,566
Posted By schureki
Parsing from file
Hello All,

I am new to Shell programming, and I need to extract from Input_file some data and send it to a new File. Here is the Input_file structure:-
General information for record #1...
Showing results 1 to 7 of 7

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