1,695 questions
3
votes
4
answers
183
views
How to remove the extra space between two cut commands?
I was making a script for a challenge I saw a while ago, which asks: "extract the 2nd ASCII character from every line in input if the line characters are less than 7, 2nd and 7th if more", ...
0
votes
2
answers
163
views
How to match patterns from one file against a specific column in another file using grep?
file1, which contains a single string per line. I want to check if each string exists in the second column of file2. file2 contains two single space-separated strings per line, but some lines may have ...
3
votes
2
answers
100
views
Cut() with custom bins
I have the following two dataframes:
data <- data.frame(
yyyymm = c(202401, 202401,202401,202401,202402,202402,202402,202402),
id = c(1,2,3,4,1,2,3,4),
value = c(1,200,400,99999,2,400,200,180)...
1
vote
2
answers
75
views
Remove N characters after matching string from Fortigate logfile
Looking for a way to remove characters after the matching string
Example data:
srcip=10.1.100.11 srcport=58012 srcintf="port12" srcintfrole="undefined" dstip=23.59.154.35 dstport=...
1
vote
1
answer
69
views
D3 dendrogram filter out descendents given a number of links
I encountered this problem and struggled to figure out a solution. I'll try my best to describe it.
The problem I'm trying to solve is, given a number (you can interpret it as the number of links or ...
-2
votes
1
answer
81
views
Piping to the cut command returns nothing
I'm using Macos with this version of Bash:
GNU bash, version 3.2.57(1)-release (arm64-apple-darwin22)
I'm grepping a log file and piping the results to cut, where i'm trying to remove the first 64 ...
0
votes
3
answers
122
views
Trying to cut (not copy) data from Sheet 2 into Sheet 1 based on cell text value
I'm brand new with a whole day of VBA coding under my belt. I've searched a host of examples cutting and pasting data from one sheet to another without success.
Herein lies my problem:
Sheet1 is "...
1
vote
0
answers
28
views
Unreal, Mask out player model that overlaps a weapon for sprite sheet export
I am able to create an animation sequence and export 8 frames for walking as a sprite sheet.
I want to export the player model without a weapon (which I have done)
I want to export the weapons ...
6
votes
4
answers
183
views
How to cut ranges from end to start?
I need to change the order of a string in AIX, but with the command cut I can't do it
Ex:
echo FT0215202301.xml | cut -b 7-10,5-6,3-4
Result:
02152023
Expected:
20230215
0
votes
1
answer
357
views
gdstk Boolean too slow but works fast in Klayout?
I am trying to cut out several holes in a rectangle. When I do this in Klayout using "Subtract others from first", the result is computed almost instantly. However, when I try to do it using ...
1
vote
1
answer
110
views
Using cut command with criterion from a bash variable [duplicate]
I would like to use the cut command to extract some columns of a csv file.
However, instead of having my criterion hard-coded, I would like to take them from a bash variable.
Without a variable, my ...
-2
votes
4
answers
102
views
Using AWK with multiple delimiters
I'm trying to get the first part of Column $1 with the entire Column $2,$3 and $5 but unfortunately I'm getting a different output
Input:
2023-08-01 05:30:01,Lakers,CA,LA,US
2023-10-05 16:40:23,Denver ...
-2
votes
1
answer
250
views
Output text from file after certain string [duplicate]
I am looking for a methode to return all text from after a certain phrase in the file.
So I have text file, lets say it called README, which contains the text below. I need a command to only output ...
0
votes
0
answers
143
views
Unity Built-in shader, cutout + transparent
Is it possible to have a shader which uses both, cutout and transparency?
I need a classic built-in shader that uses cutout. But I also need the "full-opaque" parts to be transparently ...
1
vote
1
answer
339
views
Get 3rd column and put it in another file for all CSV files with Powershell
I have a folder, with subfolders full of csv files.
For each file I would like to get only the third column and save it in another file.
Example:
filedata1.csv
aa,bb,cc
cat,horse,"dog, bird"
...