Sponsored Content
Full Discussion: Execute all files at once
Top Forums Shell Programming and Scripting Execute all files at once Post 302781499 by hanson44 on Saturday 16th of March 2013 06:08:14 PM
Old 03-16-2013
This might work:
Code:
ls temp*.txt | xargs -n 1 bimbo

The functionality could also be built into the bimbo script, so you could run bimbo temp*.txt, but the above way will probably work.

Of course, I hope you are saving copy of original files to verify bimbo script working correctly.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Can crontab execute binary files?

Hello! I have an entry on my crontab. 10 00 * * * /bscsprod/bscs/prod/523/bin/tehcron.sh $ /bscsprod/bscs/prod/523/bin/vi tehcron.sh nohup teh -t -f > /dev/null & ~ ~ ~ ~ ~ ~ ~ ~ "tehcron.sh" 13 lines, 365 characters but executing the script from the... (5 Replies)
Discussion started by: Tris
5 Replies

2. Linux

I need help getting my tar.gz files to execute

I am having trouble getting my Tar.gz file to execute. I do the following tar -zxvf firefox-2.0.0.1.tar.gz at the terminal once installed I can not get the firefox Icon or bin to execute. I do not know how to configure the path to get it to work. It places the folder under the /root/usr/local/bin.... (6 Replies)
Discussion started by: pgoble
6 Replies

3. Shell Programming and Scripting

I do I execute several files in a directory

I have a directory with several files with commands inside: file1 file2 file3 ... file n I want to make a script that will execute the commands in this files one by one and move the files to another directory. When there is no more files in the directory the script ends. Can you... (2 Replies)
Discussion started by: nagomes
2 Replies

4. Shell Programming and Scripting

how to list files and execute an action?

I'm not sure how to word what I'm trying to do. I would like to: 1. Generate a list of files (easy to do ls -l > list.txt) 2. Carry out an action again each file in the list (not so easy to do) Like: List all files in /dir and then execute a move of each file individually. something... (6 Replies)
Discussion started by: bbbngowc
6 Replies

5. UNIX for Dummies Questions & Answers

For Loop to execute a command on a series of files

Hello, I have a set of input data that I split into batches using the following command: split -l 4000000 MyInput.in Split_a Once I get the split files, I run a certain command on the split files that spews an output. So far I have been doing it without a for loop. How can I translate the... (2 Replies)
Discussion started by: Gussifinknottle
2 Replies

6. Shell Programming and Scripting

How to execute script on files in another directory?

Hi Guys, Is there any way I can execute my bash script on files in a different folder than what the script is in? Here is an excerpt of my script: #!/usr/bin/bash input_path="/cygdrive/c/files" output_path="/cygdrive/c/files/data" #script uses files from /cygdrive/c/files directory,... (1 Reply)
Discussion started by: npatwardhan
1 Replies

7. Shell Programming and Scripting

sort the files based on timestamp and execute sorted files in order

Hi I have a requirement like below I need to sort the files based on the timestamp in the file name and run them in sorted order and then archive all the files which are one day old to temp directory My files looks like this PGABOLTXML1D_201108121235.xml... (1 Reply)
Discussion started by: saidutta123
1 Replies

8. Programming

[Solved] Cannot execute file that include files

Iam trying to execute a file that include many files but it seems my main copy.c can't read anyone of them ----------------------------------------------------------------------------------------- Copy.c #include <sys/stat.h> #include <fcntl.h> #include "tlpi_hdr.h" #ifndef BUF_SIZE /*... (2 Replies)
Discussion started by: fwrlfo
2 Replies

9. Shell Programming and Scripting

Find files and execute commands on these files (advanced)

So, I need to find a bunch of files and delete them (this example, but sometimes I need it for something else) and my trusty go-to command has always been: find . -type f -name '*file*' | xargs -I## rm '##' Works wonders... But: touch file\ file\'.txt touch file.txt touch file\ file.txt... (6 Replies)
Discussion started by: Mr.Glaurung
6 Replies

10. Shell Programming and Scripting

Execute a Command in a .Dat File and use it in other Files

We have a process where we store the database password in a config file like below from where the password is picked up and used in Database Scripts ID, Password But we now have a Audit Requirement not to have the passwords in Config Files directly. We have a command which could fetch the... (2 Replies)
Discussion started by: infernalhell
2 Replies
CHECKOBJ(1)						      General Commands Manual						       CHECKOBJ(1)

NAME
checkobj - check an object file to see whether it can be executed SYNTAX
checkobj [ -s ] [ -f ] [ -40 ] [ file ... ] DESCRIPTION
Checkobj attempts to determine whether the named files are valid executable binary files. It checks for size restrictions, including those due to the granularity of memory management on the PDP11. It is especially useful for overlaid object files, where there are a number of constraints. If a file is too large or improperly laid out, checkobj attempts to point out format changes that would allow the program to run. OPTIONS
Several options control the checks: -s Check for the use of separate I/D. If the file is separate executable, an error is flagged, and an appropriate way to load for a nonseparate machine is suggested if possible. -f Check for the use of floating point arithmetic without inclusion of the floating-point interpreter. -40 Combine the -s and -f options, to check for suitability for an 11/40-class PDP11. BUGS
The test for floating point is simple-minded. It is based on the definition of ``fltused'' by the C compiler and ``fptrap'' in the float- ing-point simulator. This test does not work if the object has been stripped. DIAGNOSTICS
The exit status is 0 if all named files are runnable with the specified options, nonzero otherwise. AUTHOR
Mike Karels, University of California, Berkeley 3rd Berkeley Distribution CHECKOBJ(1)
All times are GMT -4. The time now is 10:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy