1. Is there a way to count the number of bytes of a variable?
example:
abc@yahoo.com is 13 bytes
2. Cut command only allows one byte for delimiter
example: cut -f1 -d'.'
delimited by period. Is there a way to have two or more characters in the delimiter field?
thanks in adavance.
:) (4 Replies)
Hi All,
I wish to cut an input by using the below command but i would want to have the cut position as a variable.
For eg, the position number is 11 now and i wish that this number is being assigned to a variable before putting into the cut function.
Can this be done ?
Can any expert help?... (1 Reply)
In my server migration requirement, I need to compare if one file on old server is exactly the same as the corresponding file on the new server.
For diff and comm, the inputs need to be sorted. But I do not want to disturb the content of the file and need to find byte-to-byte match.
Please... (4 Replies)
Hi All
Can anyone please suggest me how to remove the last byte from a falt file .This is from the last line's last BYTE.
Please suggest me something.
Thank's and regards
Vinay (1 Reply)
Hi all,
I am new to perl programming. However i have a script that connects to the database and spools that into an output file.
Strange thing is that sometimes this script works and sometimes the ouput spool file is always 0 byte.
I have verified the sql query and the query always returns... (5 Replies)
How to extract multiple data based on character position. I need to fetch from 7-9 and 22-26 and there is no delimiter for 22-26 since it is part of the column. The file may have more than 1000 character long.I managed to pull any one but not both
for example
test data
12345 zxc vbnmlk... (1 Reply)
Hi All,
I am having a huge file file. I need to cut the below column and do the below calculation
I did the below command and able to do on full databased no on the individual based any help on doing each row by row
cut -c 52-56 myfile | awk '{total = total + $1}END{print total}'... (7 Replies)
Hello,
I am on AIX.
When I encounter extended ascii characters and special characters on a file I need to print..
Byte position, actual character and line number.
Is there a simple command that can give me the above result ?
Thanks in advance (38 Replies)
Hi All,
We have a requirement of picking nth position value by using cut command. value would be delimited by any symbols. We have to pass delimited value and postition to get the value in a string.
ex.
echo "A,B,C,D,E" |cut -d "," -f3
echo "A|B|C|D|E"|cut -d "|" -f2
Kindly frame the... (5 Replies)
Discussion started by: KK230689
5 Replies
LEARN ABOUT DEBIAN
__gnu_parallel::find_if_selector
__gnu_parallel::find_if_selector(3cxx)__gnu_parallel::find_if_selector(3cxx)NAME
__gnu_parallel::find_if_selector -
SYNOPSIS
Inherits __gnu_parallel::generic_find_selector.
Public Member Functions
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred > bool operator() (RandomAccessIterator1 i1,
RandomAccessIterator2 i2, Pred pred)
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred > std::pair
< RandomAccessIterator1,
RandomAccessIterator2 > sequential_algorithm (RandomAccessIterator1 begin1, RandomAccessIterator1 end1, RandomAccessIterator2 begin2,
Pred pred)"
Detailed Description
Test predicate on a single element, used for std::find() and std::find_if ().
Definition at line 50 of file find_selectors.h.
Member Function Documentation
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred > bool __gnu_parallel::find_if_selector::operator()
(RandomAccessIterator1i1, RandomAccessIterator2i2, Predpred) [inline]
Test on one position. Parameters:
i1 Iterator on first sequence.
i2 Iterator on second sequence (unused).
pred Find predicate.
Definition at line 60 of file find_selectors.h.
template<typename RandomAccessIterator1 , typename RandomAccessIterator2 , typename Pred > std::pair<RandomAccessIterator1,
RandomAccessIterator2> __gnu_parallel::find_if_selector::sequential_algorithm (RandomAccessIterator1begin1, RandomAccessIterator1end1,
RandomAccessIterator2begin2, Predpred) [inline]
Corresponding sequential algorithm on a sequence. Parameters:
begin1 Begin iterator of first sequence.
end1 End iterator of first sequence.
begin2 Begin iterator of second sequence.
pred Find predicate.
Definition at line 72 of file find_selectors.h.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Thu Aug 2 2012 __gnu_parallel::find_if_selector(3cxx)