The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
16 views

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 ...
1
vote
2answers
27 views

Excluding a file from UNIX “find” results based on existence of another file

I have a big bunch of directories, each with a series of .pdf files. Some of these files have successfully converted to .csv, some have not. An example directory listing using find ./: ...
11
votes
2answers
623 views

Why does redirecting the output of a file to itself produce a blank file?

Why does redirecting the output of a file to itself produce a blank file? Stated in Bash, why do less foo.txt > foo.txt and fold foo.txt > foo.txt produce an empty foo.txt? Since an ...
0
votes
1answer
121 views

How to extract a specific file without its folder structure using the 7za command

I have a zip file (my.zip) consisting of 4 files: mydata_20050523-20130113.csv mydata_20050523-20130113FileHeader.csv my Data Association - Code Values.pdf my Data Association - Readme.pdf out of ...
5
votes
2answers
3k views

Opposite of tail: all lines except the last n lines

How can I discard the last n lines of a file with a unix command line filter? That would be sort of the opposite of tail: tail discards the first n lines but pipes the rest through, but I want the ...
1
vote
0answers
81 views

pronunciation of 'ctl' in commands like 'systemctl' [closed]

There are sorts of commands like 'systemctl', 'hostnamectl', or 'jounralctl'. I realize that 'ctl' is shorthand for control, but I'm wondering what the generally accepted pronunciation of 'ctl' is.
2
votes
1answer
211 views

why do *NIX commands have such “insane” (counterintuitive) defaults (philosophical pondering)? [closed]

Why do most *NIX commands my (experience is Linux mostly and rare encounter with FreeBDS) have such "insane" (unintuitive) default, behaviours, i.e. VERY different from what the "equivalent" GUI ...
2
votes
1answer
59 views

how to compare contents of video files?

I have many videos with different encoding. I know some of them have the same content. So here's my need: is there a linux tool (command line oriented, with or without graphical front-end, ...
1
vote
0answers
172 views

rTorrent web frontends [closed]

What are the differences between rtgui and rtpg-www as web front ends for rTorrent. I am looking to run rTorrent on a media server connected to my TV and want a gui so that my roommates that are not ...
3
votes
4answers
3k views

awk / sed to print only up to the underscore character

How can I use awk or sed to print a string only up to the first underscore character? Before: host100_044 2 host101_045 2 host102_046 2 After: host100 host101 host102
2
votes
1answer
89 views

Why is `bc` ignoring my `obase`?

>>> bc bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. ibase = 16 obase = 56 ...
1
vote
1answer
157 views

Identifying a file with “file” in a shell script?

I'm currently writing a shell script that needs to be able to identify the actual type of files (not their extensions) with the unix "file" utility. However, that tool outputs human readable text ...
0
votes
1answer
332 views

Curious about lsusb output

I ran lsusb on my Linux (Ubuntu) machine and here is my result: Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 ...
2
votes
2answers
669 views

why doesn't unix's du(1) command support -i for inode measurement?

Is it simply because going from filenames to inode numbers is difficult in userspace, and you can't read inodes from there?
1
vote
2answers
87 views

Is there an equivalent of the unix 'look' command on Windows?

I'm looking for an equivalent of the unix look command, which searches a text file for lines beginning with a given prefix. In particular, it has an option for a binary search within a pre-sorted text ...
5
votes
2answers
1k views

How do I install 'rev' in Cygwin?

The Unix rev utility reverses lines in a file. How do I get this under Cygwin? Which package do I need to install?
1
vote
3answers
6k views

How to kill all the processes that have dates older than today?

I issue the command ps -aux | grep tony. It displays the following output tony 10986 0.0 0.0 33532 464 ? S Feb01 0:00 vncconfig -iconic tony 10988 0.0 0.0 86012 512 ? ...
4
votes
3answers
568 views

How can I change the order of GNU Screen “screens”?

I am currently using the GNU Screen tool. Now my question is whether there is a way to organize or rather change the order of the screens/ screen list displayed at the bottom of my console window. I ...
11
votes
4answers
2k views

Flashing window in gnu screen

I really like gnu screen but there is a problem in my environment when I use it. Examle: username@domain:/var/www$ l Display all 130 possibilities? (y or n) when you click [Tab] to perform ...