Questions tagged [append]
21 questions
49
votes
2 answers
why it is 2>&1 and not 2>>&1 to append to a log file
I am redirecting STDOUT and STDERR to a single file, always growing,
so I use always use "append" redirection; this is >>
my command is command >> logfile 2>&1
And it works.
But the STDERR redirection has a single >, which I was using to "create"…
Mikel Vergy
- 591
14
votes
5 answers
Add to every end of line in Notepad++
I have a long text file
gallery-dl -g -i w4b027.txt >
gallery-dl -g -i a4b028.txt >
gallery-dl -g -i b4b029.txt >
gallery-dl -g -i c4b030.txt >
gallery-dl -g -i d4b031.txt >
gallery-dl -g -i w4b032.txt >
gallery-dl -g -i w4b033.txt >
gallery-dl -g…
Roxion
- 354
3
votes
1 answer
Append line with sed or awk
In a bash script I have to append a line into a systemd file. The file looks like this:
[Unit]
...
[Service]
...
The line must be appended under the [Unit] section and after all the lines in this section:
[Unit]
...
---MY LINE---…
coverflower
- 113
2
votes
1 answer
Batch populate JPEG IPTC keyword from csv or txt file
I have 50,000-plus JPG files which I've tagged for easy lookup by user-selected keywords. The database which matches image files with their keywords is proprietary and utility-specific. I want to switch to embedding keywords in each image's IPTC…
2
votes
1 answer
AutoIt - writing text to the end of a line
I'm working with AutoIt, and I was wondering in there is a method I can use to append a string of text to the end of a line inside a text file. I've been browsing all over autoIt forums and there are lots of answers that are really close, but I have…
TCHP
- 21
2
votes
1 answer
Using %ksappend from main kickstart file from usb device, what is the correct path?
I'm using kickstart for the installation of a Fedora system.
I separated some steps of the installation in some kickstart files, so they can be easily reused. For example, the section about partitioning is in one file, the packages to be installed…
Egidio Docile
- 331
- 2
- 4
- 8
2
votes
1 answer
automatically append images in a table with imagemagick
I know this solution to append images in rows and columns.
By the way I would like to arrange the images in a square table automatically regardless of their number and without grouping them with the parenthesis.
Example output:
Is it possible to do…
eadmaster
- 1,356
1
vote
1 answer
Adding a line to an XML file after specific Tags
How would you guys go about adding a line to a bunch of XML files after certain tags?
Solution can be based in usage of unix tools or name a text editor or utility that could allow me to do this quickly and easily. I have over 60 files that I need…
nmuntz
- 761
1
vote
2 answers
How to append the contents of a .tar file to another file
I have a file named archive.tar and I want to append its contents (archive.tar is a backup file coming from a text file) to another file. I use the following command that doesn't seem to work:
tar -tvf archive.tar | cat archive.tar >> file
user25
- 41
1
vote
1 answer
How do we achieve the following using replace function in notepad++
Transform
Source: This is source 1
Description : This is the description of source 1
Source: This is source 2
Description : This is a description of source 2
into this:
Description : This is a source 1: This is the description of source…
C0ppert0p
- 123
- 1
- 3
- 10
1
vote
2 answers
In bash, how to combine the output of two commands and append them on the SAME line of a file?
For example I have two commands here:
{ command1 & command2; } >> file1
For example the output of command1 is 400, and the output of command2 is 4.
So this is what I get:
400
4
I want the outputs of the two commands to be appended on the same line…
Galaxy
- 233
- 2
- 6
- 12
0
votes
2 answers
Append info to an existing field based on the value of another field
I would like to run a query that updates a field's value with whatever is already there but with an "cbt" appended in the end.
For example say there's a field called Currency and for a certain record Currency is "USDCNY", I want the field Details to…
Melissa
- 1
0
votes
1 answer
Append one file to another using FFMPEG
All the FFMPEG examples show how to take file1 + file2 and write result to the file3.
Is FFMPEG just able to open file1, seek to the end and then append file2, without creating the third, intermediate, file?
I would like to make a Windows Explorer…
Paul
- 986
0
votes
0 answers
Regex adding to filename by find replace (Java/ECMA script regex)
I am trying to append to a filename with regex replace.This can be done by many ways for sure but i need to do it with regex, Need select filename and replace it with filename+newtext
so in example i should be able to replace all these three lines…
i3ordo
- 1
0
votes
1 answer
append multiple files in descending order in dos cmd
I have some files with names 93112.txt, 93111.txt, 93110.txt etc.
I want to put them into a single combined file such that
the largest number file goes in first, then the next smaller
...and finally the smallest.
I need a short DOS command to do…
ravi
- 1