Search Results

Search: Posts Made By: Vryali
8,029
Posted By Vryali
You say Linux, have you considered using tmux? ...
You say Linux, have you considered using tmux? It's superior to screen in everything I've ever used it for. I've actually got my tmuxrc mapped to work more similarly to the binds I've used from...
3,261
Posted By Vryali
Test file: $ cat test paul, Paul Smith,...
Test file:

$ cat test
paul, Paul Smith, Stevn Smiley, REQ000001, ARS (11)
sam, Sam Martin, Stevn Smiley, REQ000001, ARS (11)
mike, Mike Conway, Stevn Smiley, REQ000001, ARS (11)
mike, Mike...
11,715
Posted By Vryali
Think this should do you: $ awk -F'.'...
Think this should do you:

$ awk -F'.' 'int($2)>'201206000000' {print $0}' test.sh
abc.201206015423.txt
abc.201207013456.txt
18,974
Posted By Vryali
That's just not how if statements work in expect,...
That's just not how if statements work in expect, if I'm reading it right. Most of your checks come down around like the below:

I don't have expect handy this second, but I think this would be...
1,646
Posted By Vryali
Lots of whats to do this, but simply done like...
Lots of whats to do this, but simply done like this:

$ cat *.html | sed 's/\(.*taskid=\)\([0-9]*\)\(.*$\)/\133528\3/g'
http://unix.com/cgi-bin/task?taskid=33528&task.out...
Forum: What is on Your Mind? 07-24-2012
1,591
Posted By Vryali
Fun things to put in comments in scripts?
Approaching the end of my portion of some STIG/DOD compliance automation and I was challenged by a co-worker to include a story in my code. There are blocks of code that need to be kept the way they...
10,236
Posted By Vryali
I'm really not certain if this is what you're...
I'm really not certain if this is what you're looking for, if it's not please provide a little more info:

#!/bin/sh
start_number=1
current_number=0
errfound=0
errfiles=""


for file in $(ls...
5,494
Posted By Vryali
I'm not sure about everything you want to do, but...
I'm not sure about everything you want to do, but I think this does most of it:

sed -n '/^[\ \t]*COMPND.*CYTOCHROME\ C.*/{n;p;}' out.test | awk -F":" '{print $2}' | sed 's/[\ \,]//g'

sed -...
7,737
Posted By Vryali
Apologies if this is an ignorant response, but...
Apologies if this is an ignorant response, but can you not just kick them off in the background (Assuming you use a key exchange or a hosts file)?

for i in $(cat hosts.txt); do ssh user@${i}...
12,654
Posted By Vryali
Thanks for posting the solution!
Thanks for posting the solution!
7,143
Posted By Vryali
You'll probably just want to look at Alister's...
You'll probably just want to look at Alister's join, I didn't realize the command existed, so new info for me, too.
7,143
Posted By Vryali
I've got to step out, so can't actually finish...
I've got to step out, so can't actually finish this, but I got the bulk of if basically done, just needs some adaptation and to be thrown in a shell script that takes parameters to be done cleaner.
...
5,719
Posted By Vryali
You can setup sudoers to all access to that...
You can setup sudoers to all access to that specific file with no password - why not do that?

visudo and add
photoaccount ALL= NOPASSWD: /usr/bin/gphoto2

Edit: Oh duh, you have a syntax error....
4,439
Posted By Vryali
Actually, I suspect that it's because the...
Actually, I suspect that it's because the variable declaration is within the perl subshell, and isn't being 'exported' to be used in his rcp function. I'm afraid my perl isn't very good, but to get...
9,189
Posted By Vryali
Assuming you can remove the ===, as I'm not...
Assuming you can remove the ===, as I'm not really sure why they're there in a csv. Would make your headers 2+ spaces apart as well for consistency:

$ cat test
TradeDate Name SecurityMnc ...
2,189
Posted By Vryali
I've never used informatica, but in unix I'd do...
I've never used informatica, but in unix I'd do yours as such:

find /abc/Archive/ -type f -mtime +61 -exec rm {} \;

find doesn't normally by default follow symlinks, but you could try...
Showing results 1 to 16 of 16

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