i have this below string which i need to convert it to HEX. i have already tried it but it showing extra few things on it..
Hi,
I have a file in the following format
Code:
"SYLVESTER,WILLARD G"|"S00633600"|"221052958A"|"H2256"|"015"|""|"00000042BASJ"|"665303"|"N"|"20100211"|"380.4"|""|""|""|"5400"|"20110218"|""|"20110218"|"FEESC&qu
I have a file1.txt
file1.txt
Code:
F-120009210","Felix","U-M-F-F-F-","white","yes","no","U-M-F-F-F-","Bristol","RI","true"
F-120009213","Fluffy","U-F-","white","yes","no","M-F-","Warwick","RI","true"
U-12
Hi guys,i am trying to set up Vim as my C++ IDE since 2 days and no success so far.I have installed Vim pacman -Q vim
vim 7.3.661-1I have downloaded vim-latex and clang tar balls,extract and place appropriate directorys in ~/.vim e.g.
Hi All,
I need to create a script to process on 10 files.
Hi,
I don't script often enough to know how to do this, and I can't seem to find a right example online. I have a csv output from an old, old system (Win2K???), from which I want to extract only certain fields.
Hi Experts,
I am trying to split a record into multiple records based on a value.
Input.txt
Code:
"A",1,0,10
"B",2,0,10,15,20
"C",3,11,14,16,19,21,23
"D",1,0,5
My desired output is:
Code:
"A",1,0,10
"B",2,0,10
"B",2,15,20
"C",3,11,14
"C",3,16,19
"C",3,21,23
"D",1,0,5
I trie
You can replace the for-loop with something like this:awk -v max_count="$MAXCOUNT" '
$6=="Failed" && $7=="password" && $NF=="ssh2" {
array[$11]++
}
END {
for(ip in array) {
if(array[ip] >= max_count) {
print "ALL:", ip
}
}
}' /var/log/secure
In python this would be easy:
Code:
if test_var in ["a","b","c"]: print "Yes"
...but is there a way to do the same in bash?