The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
17 views

Cygwin unix-utils version of rename not functioning as it should

I'm trying to use the rename function, supplied as part of cygwin, unix-utils ( Mar22 2015), and it does not function as advertised. All the examples I've seen indicate this to be the syntax: rename ...
20
votes
5answers
4k 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 ...
0
votes
1answer
41 views

Why does grep -r --include=*.js * > dirname/.filename not write all .js files to a single file?

I am trying to put all js files in a directory and sub directorys into a single file in lexical order. What did I do wrong?
2
votes
1answer
2k views

ls: cannot access file: No such file or directory

I fundamentally do not understand the issues I am having, but will update this post when I do. Let me just show you. Context: I added a drive to my machine, and for whatever reason, I am unable to ...
2
votes
1answer
64 views

Count lines fast

I'm running Windows 7 and have GnuWin32. I have a several-gigabyte text file with LF (\n) line endings. I want to know how many lines it has (or alternatively how many LFs it has, which is, let's say, ...
12
votes
3answers
11k 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
4answers
11k 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 ? ...
1
vote
0answers
366 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 ...
5
votes
2answers
2k 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
2answers
38 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 ./: ...
3
votes
1answer
282 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 ...
4
votes
2answers
1k 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?
12
votes
2answers
1k 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 ...
2
votes
1answer
92 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, ...
0
votes
1answer
210 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 ...
1
vote
0answers
273 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.
1
vote
0answers
212 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 ...
2
votes
1answer
107 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 ...
6
votes
4answers
13k 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
1
vote
1answer
213 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 ...
-1
votes
1answer
520 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 ...
1
vote
2answers
130 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 ...
6
votes
3answers
1k 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 ...