A string is a sequence of zero or more characters. It is commonly used to represent text or a sequence of bytes. Use this tag along with the appropriate programming language being used.

learn more… | top users | synonyms

0
votes
1answer
14 views

Error outputting a string to cell

I am using a vba macro to automate part of an excel spreadsheet. The following line keeps giving me a runtime error 1004# application or object defined error Sheets("Material").Last.Offset(0, ...
-1
votes
1answer
18 views

Deleting entire line based off of string in powershell…and keeping the line below?

I'm having some issues with powershell. What I am trying to accomplish is this: file.txt = string1 a string2 b I am using the command: Get-Content C:file.txt | Where-Object {$_ -match ...
0
votes
3answers
43 views

Batch script If command on a String

What is wrong with the following command lines for my batch script? set test=BE99012345678901 if %test% == "BE99????????????"( echo This number begins with BE99 ) Else ( echo This number doesn't ...
1
vote
3answers
51 views

How can SHA512 make a long string into a short string

I´m wondering how this random and very long string €£$€@]}$€{[$£}]£[€€£$€@]}$€{[$£}]£[€]}€486745896€$@fdhhsgpbkjhYUVYUDTYhµµµ½789ty45thhrhYUFVYU7645646f8cgI JKHVruxty dw78fg f 9w64f ...
3
votes
3answers
233 views

Using vim to delete all lines except those that match an arbitrary set of strings

I use vim to remove all lines except those that match a particular string, e.g. :g!/[string that I want to remain in the editor]/d Works great. But what I really want, and haven't found anywhere, ...
0
votes
0answers
23 views

LibreOffice Calc dynamic text sort

Given the following table: A B 1 AA AA 2 HH BB 3 BB HH 4 II II 5 UU LL 6 LL UU I need to sort the values of column A to B dynamically, using only ...
12
votes
8answers
996 views

Bash Script to repeat every word in a line?

I have a string like: dog cat bird whale And I want to get dog dog cat cat bird bird whale whale All the words are in the same line. Any idea?
0
votes
1answer
34 views

How can I generate a large amount of standarized strings in a .txt file?

I'm in need of some large amount of strings generated in a .txt file. The format is number1:number2, number1 goes from 1030 up to 1130, number2 goes from 0 up to 15. Example: ...
0
votes
1answer
30 views

How to locate files within my computer containing strings of text

What I am trying to do: I am trying to locate files with in the directory \\xxxx that contain strings of text DSN=, Server=, UID=, Pwd=, Password=. The files do not have to contain every single ...
0
votes
1answer
15 views

What encoding is Banned Suffix List?

Mozilla maintains a effective TLD or banned suffix list at Public Suffix List and its wiki Public Suffix List. Most entries are straight forward, but some are confusing to me since I don't work with ...
0
votes
1answer
10 views

Change Identical Code Strings in Multiple, Separate Files in One Command

How can I change strings of code in multiple HTML documents which are all identical to something else? If I have doc A and code , and is replicated in doc A, doc B, doc C, ..., then how can I get the ...
0
votes
2answers
53 views

How do different operators deal with a given string

I want to read two strings as parameters to bash script, these strings are meant to be extensions, then I want to replace the extension of files with the first extension to the second extension. The ...
1
vote
1answer
93 views

Search, copy, paste, edit string in hex?

I'm using Windows 7 64-bit. I've got around 10,000 or so files that I want to edit. The trouble is that's just far too much to do by hand. I'll explain what I need to do below. In these files, there ...
1
vote
2answers
99 views

A method to find two strings within distance

I have a large text file collection. I'm looking for a way to find two strings that are on the same line (in the same file) in the collection where the distance in characters between those two ...
1
vote
1answer
42 views

Extract a string inside a line without whitespaces beetween other strings

I have a txt like this: [Server] Version=3 DTBNumber=1 [DTB001] DTBName=ODBC;DRIVER=SQL Native Client;UID=MAN;PWD=bingo156;DATABASE=SHITMAN;SERVER=(local); DTBType=5 DTBnUtenti=1 DTBUtenti=002LUCA; ...
0
votes
2answers
472 views

How to concat String, File Contents, and String in bash script?

I have a file which contains only one line $> cat file.txt apple,orange,cat,dog I need to append two String to it and assign it to a variable, one in front and another in the end, so that it ...
0
votes
0answers
50 views

How can i keep and remove some charecters from specific line notepad++

i have about 1000 of 80000 rows that looks like these lines and with different disposition ...
0
votes
1answer
33 views

Probability of colission when hash is half the size of data?

If i had a password of 100 bits, and hashed it with a hash function that returned a 50 bit key, now i brute force it until a get a string that produces a matching hash, is there now a 50% chance that ...
0
votes
0answers
50 views

GNU Screen - String Escapes

Can somebody please explain or point me to good tutorial about "String Escapes" used in ~/screenrc. I am playing with $PS1 and ~/.screenrc. While $PS1 seems pretty clear (colors, conditions, escape ...
0
votes
0answers
28 views

Excel String compare [duplicate]

I am trying to compare string and then display the what doesn't match between the two of them, for example: take A1 which contains [alpha:beta] and then B1 which contains [alpha] and it will match ...
1
vote
0answers
70 views

GPU used for String operations ?

Am working a bit on CUDA, most of the examples and tutorials i see deal with implementing mathematical functions on the GPU ( Like some vector / matrix calculations). I was wondering if we can ...
0
votes
1answer
394 views

how to replace unknown substring of line with sed

I want to replace a substring in a line, but I don't know what that substring is. I do know how the line starts though. For example, DNS1=[...to be replaced....]. I tried: sed -i ...
0
votes
3answers
65 views

How can I get the string of a cell?

I have a list of around 20 items and the user can pick three of them to perform a comparison, so I need a formula which gets the "TRUE" and gives me the contents of the correspondent cell in the same ...
0
votes
2answers
57 views

MS Excel: is 'ABCD always exactly the same as =“ABCD” in a cell?

As described in the title, is 'ABCD always exactly the same as ="ABCD" in a cell? It says that all the characters after the beginning apostrophe will be treated as string, so does that essentially ...
0
votes
1answer
310 views

How do I populate a column with the first x characters of text data in another column

I have a column with 14 characters. There is real information based on the first three characters. I want to have another column with only the first three characters for visibility and group by ...
2
votes
1answer
5k views

Can I force an Excel 2010 Pivot-Table to display text strings from my raw data?

Here is my use-case. As a training specialist I want to look at a single tab in Excel and see student feedback at a glance. I want to see pie-charts showing who said "Yes" this course was a good use ...
1
vote
1answer
150 views

Batch : extract some characters of a string

How can I extract alphanumeric characters only from a string? Example : b:lbalbqsd1287/;:!, gives blbalbqsd1287 Is it possible with findstr?
0
votes
2answers
268 views

Deleting line from file using SED in MultiUser Case

I have a scenario where multiple users are connected to a server using SSH. I have a file which is read and written by all the users. The file contains numbers like this - 14554 14887 23451 15135 ...
1
vote
1answer
86 views

String variability generator: Forgotten password

There's a website that I changed my password on about 2 years ago, then quit. I know about 10 possibilities of what the password could be, and what I usually do is exchange a letter with a symbol, but ...
-1
votes
2answers
130 views

Change permission on a string of directories

I have a string of directories and i want to change the permission on all of these directories to 775 (rwxrwxr-x) with a command like chmod. The problem is that the string is editable so it can be ...
2
votes
3answers
2k views

Excel CSV import treating quoted strings of numbers as numeric values, not strings

I've got a web application that is exporting its data to a CSV file. Here's one example row of the CSV file in question: 28,"65154",02/21/2013 00:00,"false","0316295","8316012,8315844","MALE" ...
0
votes
3answers
97 views

Bash PS1 string that evaluates certain code every time it is looked up

This question is very similar to this one: Colored PS1 string But I still don't understand completely. So say I have this function function getjobs { echo $(jobs | wc -l) } And my PS1 is ...
1
vote
2answers
250 views

how to make '' AND “” syntax highlight strings for python in notepad++?

Currently I have only "doubleQuotes" highlighted but the 'single ones' stay normal. Can someone confirm? Or have a solution how to fix that? In the stylers.xml there is WordsStyle named STRING which ...
0
votes
1answer
2k views

returning string from vlookup in excel

I am having trouble with the vlookup function in excel. I have 2 files: file1.xlsx and file2.xlsx. Both files have a list of products with a number of various information and I need to add values ...
1
vote
1answer
725 views

how to search for a specific string in the body of lotus notes email

There are previous questions similar to this have been asked but never answered explicitly. Simply saving use search all documents with an indexed database is not a complete answer. How do you ...
0
votes
1answer
200 views

shell script : rsync exclude

I'm building a shell script and at some point I'm excecuting thie command : rsync -arv --delete --exclude=".svn,*.db,.DS_Store" Source/ Dest/ However it seems the my exclusion doesn't work. Am I ...
1
vote
1answer
42 views

Converting strings in input file

I have a text file file1.txt on Unix. I'd like to produce another file file2.txt, in which I change all groups of lines that has this format (taken from a multiple-choice exam) a. [first choice] b. ...
0
votes
3answers
235 views

How to manipulate this string of text to make it readable?

I have this string in an excel file: 4603,2504603#;4616,2504616#;4617,2504617#;4519,2504519#;4620,2504620 (It's actually a lot longer than that, but the pattern is the same). I need to be able ...
0
votes
0answers
28 views

How to find the line containing a string in a file? [duplicate]

Possible Duplicate: How to search for a string in a line and return line and line numbers in linux? I have a file myfile. I will search for a string in this file. I want to see the line ...
1
vote
1answer
194 views

How to search for any files that do not contain a proper XML root element?

I need to be able to search several thousand XHTML and XML files and see a list of files that do not contain the following string on the first line: <?xml version="1.0" encoding="utf-8"?> How ...
0
votes
3answers
901 views

EXCEL: IF value for multiple cells

I have a 3 columns, some of which have countries in them like so I J K -------------- ----------------- ---------------- Denmark Finland ...
13
votes
3answers
4k views

Escaping apostrophe in single quotes string in bash

I don't understand how Bash evaluates escaping of apostrophe characters in single quoted strings. $ echo ''\''Hello World'\''' 'Hello World' #works $ echo '\'Hello World\'' > # expects you to ...
2
votes
1answer
4k views

function keys for paste specific text

I want to assign some text to F keys on Windows 7. For example, I want to press F5 to paste "000", or press F6 to paste ".00 US Dollars". It would be appreciated if anyone can help me (a piece of ...
0
votes
1answer
398 views

How do I find files containing two strings together in Linux? [duplicate]

Possible Duplicate: How to Combine find and grep for a complex search? ( GNU/linux, find, grep ) I have a file containing a text: PADLST20120907:D:05B:UN:IBTA+TK4 17 ...
1
vote
1answer
316 views

Protocol URL in Firefox doesn't work if it contains “%2F”

If I write something like the following into the navigation bar of Mozilla Firefox, nothing happens: ...
-1
votes
1answer
84 views

How to edit this string in cmd

I need once more a little help. I have this string: /a href="/get.php file=hackmii_installer_v1.0.zip&amp;key=43e7ce13e9818c0b4c5737b7d061005606dfad5e"><b>HackMii Installer ...
2
votes
4answers
3k views

How to find files containing two strings together in Linux?

I want to find files containing two strings together, for example the file contains both string1 and string2. I want the full path of files in output. I don't want to see "permission denied" ...
0
votes
3answers
644 views

How to search for a string in a line and return line and line numbers in linux?

I want to search for a string in a file, and the output should give me the line number and line containing that string. How can I do it?
-1
votes
1answer
720 views

paste multiple lines string to CMD or Bash variables

I want to copy multiple lines (splitted by Enter key) from, for example, notepad and then paste it into new variable in CMD or Bash console and after that do some operations on it. Although it's ...
0
votes
1answer
928 views

How to search recursively for a string in linux?

I want to search recursively for files containing a string. I want to search: Files in and under the directory I'm standing in currently A specific directory. I want to see only results. I don't ...