Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: SilversleevesX
1,627
Posted By SilversleevesX
Works. TYVM. BZT
Works. TYVM. BZT
1,627
Posted By SilversleevesX
BASH: Swap first two lines in sets of 4
Hi.

I may have mentioned in the OP to this thread (https://www.unix.com/shell-programming-scripting/167400-bash-sort-four-lines-based-first-line.html) that the AHK macro script I was trying to sort...
4,031
Posted By SilversleevesX
Many thanks to both of you...
durden_tyler and agama, both.

As a tip-o-the-hat, a script that uses both awk and perl for my purposes:
#!/bin/bash
input="temp10"
if [ -f "$input" ]; then echo "Found your file."; fi
echo...
4,031
Posted By SilversleevesX
This looks good, except I'm pretty sure that in...
This looks good, except I'm pretty sure that in AHK, the "Send," and whatever comes after it must be on the same line to work -- it's a command syntax. So that may present an obstacle when...
4,031
Posted By SilversleevesX
BASH: Sort four lines based on first line
I am in the process of sorting an AutoHotkey script's contents so as to make it easier for me to find and view its nearly 200 buzzwords (when I forget which one corresponds with what phrase, which I...
3,657
Posted By SilversleevesX
It might, but I went another way...
You might say I kind'a bailed. I decided since I was formatting the data to work with the older (and in Cygwin, slower) script, whether or not the lines had one delimiter or two didn't matter so much...
3,657
Posted By SilversleevesX
BASH: Break line, read, break again, read again...
...when the lines use both a colon and commas to separate the parts you want read as information.

The first version of this script used cut and other non-Bash-builtins, frequently, which made it...
8,210
Posted By SilversleevesX
Corona688: Thanks for the help. It works...
Corona688:

Thanks for the help. It works great.

BZT
8,210
Posted By SilversleevesX
BASH: Interactive "cp" (and "mv") in a loop
Hi.

I have a copy-file script (and a move-file script) that I recently tried to make interactive. I tested the former on three files from a text list, and watched to see what would happen. As the...
12,262
Posted By SilversleevesX
Why use a Gnome "parrot" when there's Emerald...
Why use a Gnome "parrot" when there's Emerald Editor (http://www.emeraldeditor.com/). It was once known as Crimson Editor, and is written and equipped with all the same basic and extended features of...
3,862
Posted By SilversleevesX
You might want to "re-phrase" it as a function...
You might want to "re-phrase" it as a function then invoke the function by name in either .bashrc or .bash_profile , as one or the other (https://www.unix.com/55461-post3.html) usually load with the...
6,442
Posted By SilversleevesX
Found another way to do it.
I appreciate the suggestions. Likely as not I'll be coming up with some scripts very much like this one in the near future, so I'll keep this thread bookmarked.

What I failed to mention is, while...
6,442
Posted By SilversleevesX
The alias works like this: homeperm...
The alias works like this:
homeperm bigger-than-life-xhd.jpg http://www.wd.com/store/drives/excalibur-premium-26tb-portable-sata-hd.jpg
(just something off the top of my head)

You'll notice that...
6,442
Posted By SilversleevesX
BASH: Change alias to script to add a task
Hi.

I use an alias, "homeperm" as shorthand for curl -o. Since most of what I download via cUrl is graphic image files -- jpeg files -- I'd like to be able to change this alias to a script, or use...
2,035
Posted By SilversleevesX
SSH using the shell on the client side -- possible?
I have identical scripts on two machines: one a laptop running Ubuntu 9.04, and the other a Windows XP desktop running Cygwin. The files I'd like to process are on the Windows machine. Running the...
3,465
Posted By SilversleevesX
Thanks, Jim. I'll start by asking some folks...
Thanks, Jim.

I'll start by asking some folks on the Exiv2 forum who appreciate new use concepts for the C++ library and know far better than I how to write the code to employ (didn't want to use...
3,465
Posted By SilversleevesX
Be that as it may...
I'm trying to re-create the script using one call to exiv2. "-Pnv"/"-Pkv" and grep are no good, because the output of the former is a block of text when set to a variable. So I have it writing...
3,465
Posted By SilversleevesX
I was just thinking of that.
This dovetails, coincidentally, with something the author of Exiv2, Andreas Huggel, and I were discussing on his projects forum just yesterday and the day before. The "-g" option in his command-line...
3,465
Posted By SilversleevesX
BASH: Script jams Cygwin to 100% CPU -
I'd like to streamline the code more than a bit to get it to run faster.

There's a thread (http://cygwin.com/ml/cygwin/2010-09/msg00596.html) about this and related issues of mine on the Cygwin...
923
Posted By SilversleevesX
There's Ruby for Cygwin, but it more or less...
There's Ruby for Cygwin, but it more or less requires the balance of the Cygwin/X package to install and use. One benefit of that being that you can then run Terminator, an OK-in-most-versions...
5,647
Posted By SilversleevesX
My thanks to you. I'll do just that. BZT
My thanks to you. I'll do just that.

BZT
5,647
Posted By SilversleevesX
Don't those need defined letters and numbers to...
Don't those need defined letters and numbers to start with? And maybe there's a binary or two I've yet to become acquainted with, but I've never come across a l/Unix command "reg".

Could you give...
5,647
Posted By SilversleevesX
BASH find filenames in list that match certain "pattern."
I guess by "pattern," I mean something different from how that word is defined in the Linux world. If you take $ to mean a letter (a-z) and # to mean a number (0-9), then the pattern I'm trying to...
2,582
Posted By SilversleevesX
BASH: Getting titlebar and prompt to 'sync up'
This is an instance of "if it's not one thing, it's another."

I recently fell victim to my own stupidity in trashing, by accident, my long-running and very highly-customized .bash_profile and...
5,917
Posted By SilversleevesX
Here's "why" in spades.
Spaces in file names as they're being evaluated. I just ran the finished script, sans IFS switching, and got some of this as stderr:Evaluating #92 of 164, happy older redhead.jpg...
happy: Failed...
Showing results 1 to 25 of 103

 

Featured Tech Videos

All times are GMT -4. The time now is 02:41 AM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy