All Questions
35 questions
0
votes
1
answer
102
views
Is it possible to create such a tool that allows to save a being read text from a PDF reader into a string for handling this text afterwards?
The Linux Mint has a tool for PDF reading that is called the "Xreader" and installed by default together with the operation system installation.
Is it possible to create such a tool that ...
-2
votes
2
answers
1k
views
Generate strings from regular expression in bash
How in Bash to generate a string given by a regex expression and pipe it to another command?
For example:
> $RANDOM | regex "{abcdef\d}[8]" | grep "1{3}" | less
I did not find ...
1
vote
3
answers
108
views
get specific output in linux after string
Controller loading lists...
-------------------------------------------------
command: select SERVICE_NAME from <table_name>
-------------------------------------------------
...
3
votes
2
answers
6k
views
How to iterate over list of list ( nested list ) in bash?
I have list of list such as :
data = [ ['a', 'b' ], ['a1', 'b1'], ['c1', 'd1' ] ]
I want to iterate over and access both elements of each nested list same time
something like:
for elements in ??
do
...
0
votes
1
answer
562
views
How to create a new column in tsv files by combining two other columns on linux?
I have 70 directories that have files like below:
STAN002
|______ STAN002_sasions.tsv
PTAN044
|______ PTAN044_sasions.tsv
STAN005
|______ STAN005_sasions.tsv
STAN050
|______ ...
-1
votes
2
answers
262
views
Copy column B if column E or F is empty or comes with value 0
I have a CSV file, and I want to use a bash with command awk or anything else to modify this file.
For example, I want to copy column B if column E or F comes empty or with the value of 0
AAAA, BBBB, ...
-1
votes
1
answer
137
views
Custom data formatting and pattern matching
I am trying to format custom data using pattern match. I am not getting expected format. Though I am not shell script savvy but I was able to build a script based on references from multiple sources ...
0
votes
1
answer
41
views
How can I place a column after another column for 1000 files?
I have 1000 odt files:
file 1.odt with 6 columns (x,y,z,mx1,my1,mz1)
file 2.odt with another 6 columns (x,y,z,mx2,my2,mz2)
....
file 1000.odt with 5 columns (x,y,z,mx1000,my1000,mz1000)
How can put ...
1
vote
3
answers
710
views
Replace 1 line in multiple files
I have some text files inside one directory. They all have many different strings, but 1 string is same for all.
Acct-Session-Id = "XXXXXXXX-XXXXXXXX"
where X - symbol in HEX-format.
I need to ...
1
vote
2
answers
279
views
Issue with IFS when assigned delimiter is present twice. Once in middle of the string and once at the end
The below IFS command doesn't give the expected output:
$ IFS='=' read -r key value <<< "fram-saml-idp-signing-certificate=MIIDYTCCAkmifzlwq5yziqyU04eP4wLr3cM="; echo "KEY: ${key}";echo "...
2
votes
1
answer
283
views
Is there a command that lets me quickly close and reopen multiple files in different locations, similar to how pushd popd work?
I want to be able to edit several files quickly. It would be great if there is a tool that allows me to stack files similar to how pushd and popd does. Does such a tool exist? If not, what do you ...
0
votes
1
answer
178
views
Extract all matches between a word and nth character match after that word
I have a file where I want to extract all matches.
Each match starts with a word, and ends with the nth time a character occurs after each match, in this case 2nd.
Include in the output the word and ...
1
vote
3
answers
185
views
Simple shell script unable to go through thousands of files; starts fine, but throws "unexpected EOF while looking for matching `"`" after some time
Shell Script in Question
Let me explain what I am trying to do by e.g. so you can understand better. Let's say I have 100 .torrent files in a directory. 2 of them will download xxx.epub and yyy.epub ...
0
votes
1
answer
370
views
Scripting curl requests in bash
What is given:
Statistic server which gives reply on how many ip addresses within a range correspond to a given rule.
Server which is contacted through http using pattern:
curl http://server/p?q=(...
0
votes
2
answers
2k
views
And operation and case insensitivity in awk regular expression?
I'm trying to match filenames that contain two text patterns but the matching process should ignore case. Neither of the following regular expressions work:
Setting the awk variable 'IGNORECASE' to a ...