The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
3answers
65 views

How do I recursively go through directories and name a file after the directory?

What I am attempting to do is combine all of the files within a subdirectory into a new file, and give the new combined file the same name as the subdirectory, and I have no idea how to do this in ...
-1
votes
0answers
47 views

Using excel, how to make a “closed form solution” [closed]

I know the starting and ending point of a curve but i don't know how the curve is exactly. I want to build a closed form solution in excel in order to solve this problem (i have to use a certain ...
1
vote
1answer
22 views

qsub -hold_jid -afterok loop not starting

I am trying to run a series of jobs submitted to the cluster, one after the other, by suplpying the following .sh script: Annotation_Loop.sh : #!/bin/bash job=`qsub run_IntersectBed_1.sh 0` for i ...
1
vote
3answers
65 views

bash: run command multiple times with list of values

I need to run a command several times, each time with a new value: grep VALUE0 myfile.txt grep VALUE1 myfile.txt grep VALUE2 myfile.txt Because the grep command is "crafted" ad hoc ...
1
vote
1answer
159 views

Word macro that loops through a table and stops at the end

I have movie scripts. First column is time code, second column is speaker, third column is dialog. I want to loop through the entire script, but only doing something to the third column (dialog). I ...
1
vote
0answers
50 views

repeat command until process start or timeout unix

Is there anyway to check the number of file in a directory, if the number of files is correct, say 5 files, zip the files with zip -r total.zip. If the number of files is wrong, wait 3 seconds, and ...
1
vote
3answers
174 views

In bash, how do I pass the while loops input to the cut command?

How do I pass the $line to the cut command properly in this loop? while read line do login= $(cut -d : -f 1) done < /etc/passwd I can't do $(cut -d : -f 1 $line) so what is the correct way? ...
0
votes
2answers
73 views

Windows XP stuck in loop

I've an old PC, which was used in dual-Boot with Linux Mint. I removed the Linux Mint partitions and an old data partition and enlarged the Windows XP partition. After starting, I got the grub not ...
1
vote
1answer
93 views

How to mount an old encrypted disk on Ubuntu

I've got an old hard disk, containing an encrypted partition with a file system on it. It was created (and used) several years ago, the way it was done back then was using losetup with the twofish ...
0
votes
2answers
91 views

batch - copy files to few computers over lan

I would like to copy \some\files to \computer1 \computer2 and \computer3 or better to c:\computerlist.txt How to do some loops in batch files?
3
votes
1answer
58 views

setting up a mouse loop mac server, dual monitor client

I'm trying to set up Synergy 1.4 in a format that resembles: Win7Client monitor 1 | MacServer Monitor | Win7Client monitor 2 Is this possible? I was able to set it up in the past with Windows being ...
2
votes
3answers
235 views

Move a list of files(in a text file) to a directory?

I have a list of files, with their full paths, one per line in a file "files.txt" I was trying to move all of those files from their original location to a new directory. I CDed into the directory ...
0
votes
1answer
66 views

Excel List: How to Populate a column function of several others looping until a value is found

I'm using Excel 2010, I have a mysql query that populate a list. I think my scenario is quite classic. In one column I have a label: SPEC, SWD, PRD, CLOSURE... etc Then I have 10 columns that have ...
0
votes
3answers
118 views

loop a command with a changing variable in Windows command line

I'm a noob trying to figure out how to simplify this .bat file I'm creating (sorts out movies into another alphabetized folder) so that it will have far fewer lines. I want to get it to use loop(s) ...
1
vote
2answers
345 views

How can I get the latest files from a Unix server to another Unix server?

How can I get the only the latest files from a Unix server to another Unix server? I have connected via SFTP to server 2 and trying to apply a for loop to check the time stamp, which is not working: ...
0
votes
1answer
41 views

Excute for loop in subfolder

I have this command : for i in $(svn st | grep \! | awk '{print $2}'); do svn delete $i; done I would like to execute it to a subfolder without making a cd command. Is it possible ? Thanks !
0
votes
1answer
511 views

Exit loop in AutoHotKey

I have a simple AHK script as follows: Loop, 10 { Click 745,664 SetMouseDelay, 100 Click 345,635 SetMouseDelay, 25 Click 878,471 SetMouseDelay, 25 Click 772,557 ...
2
votes
2answers
385 views

Bash script 'while read' loop causes 'broken pipe' error when run with GNU Parallel

According to the GNU Parallel mailing list this is not a GNU Parallel-specific problem. They suggested that I post my problem here. The error I'm getting is a "broken pipe" error, but I feel I ...
3
votes
1answer
384 views

Ubuntu mounts ISO but some files are unreadable

I'm new to Linux and just installed ubuntu 12.04 amd64 this month. I had failed to install Texlive with texlive2012 iso image. I used the recommended command to mount: mount -t iso9660 -o ...
1
vote
2answers
98 views

Bash - use loop to make backup script more efficient

I've a backup script (bash). Part of it is shown below. This script does a 14 day rotation of the backup. If I want to change this to say 30 days, I'd have to write out 30 such if-then blocks. I'm ...
3
votes
1answer
321 views

Loop over a range of numbers to download with wget

How can I write a bash script that is going to do the following: URL = "example.com/imageID=" while (1..100) wget URL + $i #it will wget example.com/imageID=1, than 2, than 3 and so on done So I ...
1
vote
1answer
449 views

Loops in Bash for creating sequentially numbered folders

How would I write a BASH script that creates directories test0-test63? I'm thinking something along the lines of: for x in range (64) mkdir ./test'x'
1
vote
1answer
131 views

Run Command Set In Each Subdirectory

I have the following commands that I would like to run inside each subdirectory of the current working directory. Here are the commands: OUTPUTFN=`basename $PWD` cat *.xml > $OUTPUTFN.txt mv ...
1
vote
1answer
366 views

How could I easily pack a directory to an ext4 loop partition image?

I would like to pack the content of a directory into an ext4 partition image easily, without mounting a loop device. Background: I am building a version of Android which will mount system partitions ...
0
votes
1answer
282 views

Loop mount file available through FTP

Using curlftpfs, is it possible to mount a file available through FTP on a loop device? I get a Permission denied error when I try it: $ sudo losetup /dev/loop0 FTPMount/BigFile losetup: failed to ...
0
votes
1answer
668 views

Bash Script for loop that is breaking lines up instead of using the whole line

I am writing a very simple script and I'm getting stuck on something stupid. Basically I have text file in which each line is comprised of 3 words separated by a space. When you cat the file it ...
1
vote
2answers
577 views

Bash: reading input within while read loop doesn't work

Reading input within a while read loop does not seem to work while read line do echo "get some input from the user" read response done < some_file.txt execution does not pause like it would ...
0
votes
1answer
342 views

Output filenames with for loop in a batch file

I want to rename files with a batch command and capture the original and renamed files in a list in order to provide a cross reference (doing a DIR /OS >file both before and after the batch file is ...
1
vote
1answer
475 views

Loop through several servers, find specific dlls , get the dll version, internal filename and path?

I am new to Powershell, and using PS v2. I can see the massive potential it has, but I just can't get the following code to work fully. I am trying to end up with a csv file that contains the wild ...
2
votes
2answers
2k views

Check for only numerical input in batch file

In the Windows NT-based command line (mostly for XP or higher), is there a way to verify if a switch being provided is a number only? Depending on the number, I want it to loop through the code x ...
1
vote
1answer
169 views

PC won't power on due to graphics card loop

One day when I decided to turn on my PC, something strange happened. All the fans were running, but I had a blank screen. I then heard my graphics card's (ATi 5770) fan go in to a loop, turning on for ...
1
vote
3answers
306 views

Bash Loops and Text Editors

I've got a handful of servers which have a log file I'd like to monitor. Because the project is new and most of the errors so far have been unique, I'd like to monitor these logs manually for a while. ...
1
vote
1answer
369 views

Loop a single track/element in a XSPF playlist using VLC

I've googled a lot, but I haven't found a solution yet. Is it possible to loop a single track in the XSPF playlist? In terms of a pause, we can do it in a xspf playlist as follows: <track> ...
0
votes
2answers
179 views

Assigning values to Variable variables

I'm having troubles with a for loop, similar to below: for VARIABLE in alpha bravo charlie; do $VARIABLE=`sed -n '/$VARIABLE/s///gp;' $FILE` done $FILE might contain something like alpha sandy ...
0
votes
1answer
171 views

Loop until user presses 'C' in sh file

What I want is as follows: At first when user runs .sh file it displays following: Review id: You id is:XXX000YYY Do you want to change it?[Press Y to change, C to continue]: Now If user presses Y ...
1
vote
1answer
222 views

bash loop in an increasing sleep time?

I would like to have a while loop in bash like this: while read i do ~/bin/submit_job $i sleep N done But I would like N in sleep N to be short at the beginning, then progressively increase ...
0
votes
1answer
919 views

HP laptop boot loop & black screen

After loading a driver for an external usb wifi adapter, this laptop is having issues booting. Symptoms are: Boots up but loops after 15 seconds or so, don't know if it is actually posting Black ...
0
votes
3answers
724 views

Loop through a directory unix shell programming

Use a for loop to go through the filenames in the directory. In this version, only loop through the filenames that do not have a ".old" extension Inside the loop, rename the file to the new name. ...
2
votes
1answer
1k views

Bash Shell Scripting - How to iterate through files and directories, and copy and rename files?

I have a directory setup as follows: /Group1/audiofile1.wav /Group1/audiofile2.wav /Group1/audiofile3.wav /Group1/audiofile4.wav /Group2/audiofile1.wav /Group2/audiofile2.wav /Group3/audiofile1.wav ...
0
votes
0answers
217 views

My laptop won't load Vista, and is instead stuck in a loop

my Sony VAIO laptop with Windows Vista (VGN-NR260E) won't allow me to login to Windows, and instead is stuck in a loop or cycle. There are many different screens that appear, depending on what I ...
3
votes
3answers
385 views

PC booting and rebooting repeatedly without completing POST

I have a custom build PC: Corsair HX620 PSU Intel 6870 C2D Geforce 8800GT Asus P5Q-E I've recently moved from the UK to Canada, upon plugging my UK built PC into the wall socket it gets stuck in an ...
2
votes
1answer
429 views

(PAUSE) and (LOOP) code for “Terminal” needed

I'm trying to create an Automator app to include a workflow that will play a sound in a loop preceded by a 1 min pause. I want to do this without using elements from the "actions" library, but writing ...
1
vote
2answers
734 views

How to iterate over all pair combinations in a list in bash?

I define a list in bash like this: list="element1 element_2 my_element_3 element04" and I want to do a loop where I iterate through all possible pair combinations. In Perl, I would use a ...
8
votes
5answers
19k views

Windows 7 + Deep Freeze - I'm stuck in an endless reboot loop

I have the following setup: Windows 7 Ultimate Deep Freeze I "thawed" my machine last night and performed a Windows Update. The update is having issues (it gets stuck at 32%, fails, and restarts ...
1
vote
1answer
235 views

In a for loop, how do I echo only the current file on a single(updating) line instead of EVERY file which will produce a list?

My first question on this stackexchange, and I am sure there will be more as I venture farther into the world of what is Linux... I have a for-loop in a shell-script that batch renames all files to a ...
1
vote
1answer
171 views

Error on loop disk in Ubuntu

I had a disk, but unfortunately it had errors from a hard reset on the laptop power. How do I know? $ file cache.disk cache.disk: Linux rev 1.0 ext3 filesystem data, ...
1
vote
1answer
357 views

managing ssh command in a bash loop

i've done a bash script like this while read site address do ssh $address "df -k" done to repeat the remote command few times, but the loop works just once. Any idea on the reason of this ...
1
vote
1answer
888 views

Allowing users to mount /dev/loop0

I have a following problem. I need to let normal users mount device /dev/loop0 to a predefined directory /mnt/data. The filesystem of the device is unknown and is to be defined when mount command is ...
1
vote
1answer
174 views

Permanently change ownership of loop devices

How could I let normal user become the owner of the loop devices? I tried with chown, but whenever the device is being detached with losetup -d if afterward being created then again automatically ...
0
votes
1answer
199 views

losetup -d not always works

My OS is Slackware 13.1(2.6.33.4-smp). I'm running losetup -d $dev in my custom script as the last line to free some loop device created in it. However, it not always works saying that the device is ...

1 2