---------- Post updated at 11:23 PM ---------- Previous update was at 11:00 PM ----------
Quote:
Originally Posted by rdcwayx
The file has 17,000+ records(rows) of data with the following format,
1702938475,SNU022,201004
but the first column number above in red, is different for every row, the 7 numbers that follow 170 are random numbers for each row. So do i still echo that string?
Is there a simple way of determining whether a command line arguement is numeric or not?? I tried a search and didn't find anything similar...
This is the 2nd time I've made this post.... It didn't appear that the first one showed up ??
Sorry if this is a duplicate... (1 Reply)
Is there an easy way using a command or other routine for testing whether an argument on the command line is numeric? Just want to validate... I ran a search and didn't find a similar question....
Thx (3 Replies)
I have a customer who logged some cc and bank account numbers in their apache logs. I got the cc numbers x'd out with
sed -e 's/args=\{16\}/args=XXXXXXXXXXXXXXXX/g' -e 's/cardnum=\{16\}/cardnum=XXXXXXXXXXXXXXXX/g'but that wasn't too difficult due to the value being 16 digits.
The bank account... (7 Replies)
Hi
I am very new to linux and scripting.
I need to replace numbers abc with number xyz inputting from a reference file.
I used the following command -
sed "s/$grd/$lab/" , where $grd and $lab comes from reference file.
The problem is the above line doesnt take care of space..... (1 Reply)
these are numeric ids..
222932017099186177
222932014385467392
222932017371820032
222932017409556480
I have text file having 300 millions of line as shown above. I want to find duplicates from this file. Please suggest the quicker way..
sort | uniq -d will... (3 Replies)
hi,
i have a string
" 00000069 ThreadMonitor W WSVR0606W: Thread "WebContainer : 43|null" (00000069) was previously rep
orted to be hung but has completed. It was active for approximately 47533430 milliseconds. There is/are 43 thread(s) in tot
al in the server that still may be hung."
... (4 Replies)
Hi All,
I need to found the below numeric value using unix(shell) commands in .txt file and its available in root directory.
for example: file name is siva.txt and content is
Siva_12345_werwerwe,11,22,33
Siva_12346_werwerwe,22,33,44
Siva_12347_werwerwe,55,44,66
for above string i... (2 Replies)
Hi All,
I am trying to replace a certain value from one place in a file . In the below file at position 35 I will have 8 I need to modify all 8 in that position to 7
I tried
awk '{gsub("8","7",$35)}1' infile > outfile ----> not working
sed -i 's/8/7'g' infile --- it is replacing all... (3 Replies)
Discussion started by: arunkumar_mca
3 Replies
LEARN ABOUT DEBIAN
fcping
FCPING(8) Open-FCoE Tools FCPING(8)NAME
fcping - Fibre Channel Ping (ELS ECHO) tool
SYNOPSIS
fcping [-fqx] [ -i interval ] [ -c count ] [ -s size ] -h source target
source = interface | MAC | WWPN | FC-ID
target = -P WWPN | -N WWPN | -F FC-ID
DESCRIPTION
The fcping command performs the Fibre Channel FC-LS-2 ECHO ELS command and displays the reply. The max payload for fcping is 2108 bytes.
When no -c is given, fcping will continue until user interrupts.
OPTIONS -f
Flood ping
-q
Quiet! just print summary
-x
Hex dump of responses
-i interval
Wait interval seconds between each ping
-c count
Stop after sending count pings
-h source
Source is interface like ethX, MAC address, WWPN, or FC-ID
-s size
Byte-length of ping request payload (max 2108)
-F FC-ID
Destination port ID
-P WWPN
Destination world-wide port name
-N WWNN
Destination world-wide node name
EXAMPLES
Sends ELS ECHO to Port FC-ID 0xbf0027 from interface n0.170 with max 3 pings.
fcping -c 3 -h n0.170 -F 0xbf0027
sending echo to 0xBF0027
echo 1 accepted 16.170 ms
echo 2 accepted 7.053 ms
echo 3 accepted 6.803 ms
3 frames sent, 3 received 0 errors, 0.000% loss, avg. rt time 10.009 ms
Sends ELS ECHO to WWNN 0x1000001B213C9DDA from interface n0.170 with max 3 pings and payload size 1500 bytes
fcping -c 3 -h n0.170 -s 1500 -N 0x1000001B213C9DDA
sending echo to 0xBF0027
echo 1 accepted 6.597 ms
echo 2 accepted 6.925 ms
echo 3 accepted 12.419 ms
3 frames sent, 3 received 0 errors, 0.000% loss, avg. rt time 8.647 ms
Sends ELS ECHO to WWNN 0x1000001B213C9DDA from interface n0.170 continuously with payload of 32 bytes and hex-dump the reply to the screen
fcping -x -h n0.170 -s 32 -N 0x1000001B213C9DDA
sending echo to 0xBF0027
echo 1 accepted 6.937 ms
response length 32
0 02000000 00000001 00010203 04050607
10 08090a0b 0c0d0e0f 10111213 14151617
echo 2 accepted 6.923 ms
response length 32
0 02000000 00000002 00010203 04050607
10 08090a0b 0c0d0e0f 10111213 14151617
echo 3 accepted 84.929 ms
response length 32
0 02000000 00000003 00010203 04050607
10 08090a0b 0c0d0e0f 10111213 14151617
SEE ALSO fcoeadm(8)SUPPORT
fcping is part of the fcoe-utils package, maintained through the Open-FCoE project. Resources for both developers and users can be found at
the Open-FCoE website http://open-fcoe.org/.
Open-FCoE 05/24/2011 FCPING(8)