Sponsored Content
Homework and Emergencies Homework & Coursework Questions Help with Shell Scripts Using sed in multiple files. Post 302684581 by Johnny2518 on Thursday 9th of August 2012 06:44:43 PM
Old 08-09-2012
Sorry for the confusion. I entered in the code you showed, and ran a program that takes that code and uses it on different files. While in the file it finds a certain expression and replaces it with another. When i ran the program it said that sub3 (the program code i am trying to write) produced incorrect output on test 28:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to make the same change in multiple shell scripts?

I would like to make the same change in multiple shell script files and would like to know if anyone can be of some help? I would appreciate it. (4 Replies)
Discussion started by: rdakhan
4 Replies

2. Shell Programming and Scripting

Manipulating a variable across multiple shell scripts

I have a shell script similar to: #!/bin/sh a=1 source a1.sh -- Modifies a source a2.sh -- Modifies a echo "After execution, value of a is $a" What i need is a1.sh script modify the same variable a and same with a2.sh. Now the echo "After execution, value of a is $a" should print the... (1 Reply)
Discussion started by: indianjassi
1 Replies

3. Shell Programming and Scripting

shell scripting-processing multiple scripts

I have four scripts to run. My 1st script will make script2 and script3 to run. I am setting a cron job for this script1 to run continuously. This script1 will check for 2 text files and based on the existance of those text files it will initiate the script2 and script3. Now my doubt is that... (2 Replies)
Discussion started by: RSC1985
2 Replies

4. Shell Programming and Scripting

Split line to multiple files Awk/Sed/Shell Script help

Hi, I need help to split lines from a file into multiple files. my input look like this: 13 23 45 45 6 7 33 44 55 66 7 13 34 5 6 7 87 45 7 8 8 9 13 44 55 66 77 8 44 66 88 99 6 I want to split every 3 lines from this file to be written to individual files. (3 Replies)
Discussion started by: saint2006
3 Replies

5. UNIX for Dummies Questions & Answers

Use of grep with multiple parameters in shell scripts

I am learning how to write shell scripts and have come across an issue. I'm trying to write a script that looks for a directory called public_html, and if it finds one, to print the number of lines that contain applet tags (containing '<applet') in all files that end in either .html or .htm that... (7 Replies)
Discussion started by: feverdream
7 Replies

6. Shell Programming and Scripting

Making use of multiple cores for running sed and awk scripts

Hi All, After reading that the sort command in Linux can be made to use many processor cores just by using a simple script which I found on the internet, I was wondering if I can use similar techniques for programs like the awk and sed? #!/bin/bash # Usage: psort filename <chunksize>... (7 Replies)
Discussion started by: shoaibjameel123
7 Replies

7. Shell Programming and Scripting

Help with Shell Scripts Using sed in multiple files.

Hi, I was hoping that someone could help me. I have a problem that i am trying to work on and it requires me to change text within multiple files using sed. I use the program to change an occurance of a word throughout different files that are being tested. At first i had to Create a new script,... (1 Reply)
Discussion started by: Johnny2518
1 Replies

8. Shell Programming and Scripting

Multiple shell scripts executed in one script

Hi every one, i am new to shell script. my people given a task to write a shell script that should execute number of shell scripts in that. in that, if any shell script is failed to execute, we have to run the main script again, but the script should start execute from the failed script only.. it... (1 Reply)
Discussion started by: Madhu Siddula
1 Replies

9. Shell Programming and Scripting

Multiple shell scripts executed in one script

Hi every one, i am new to shell script. my people given a task to write a shell script that should execute number of shell scripts in that. in that, if any shell script is failed to execute, we have to run the main script again, but the script should start execute from the failed script only.. it... (6 Replies)
Discussion started by: Madhu Siddula
6 Replies

10. Homework & Coursework Questions

Shell Script to sed with Multiple Files

I am not sure what I am doing wrong here. The code should work fine. I have been making small changes insuring that each new bit works. Now running my sed through multiple files I am getting incorrect output. Any help and instruction would be greatly appreciated. The problem - Generalize... (10 Replies)
Discussion started by: Lycopene
10 Replies
hwloc_topology_cpubind_support(3)			     Hardware Locality (hwloc)				 hwloc_topology_cpubind_support(3)

NAME
hwloc_topology_cpubind_support - SYNOPSIS
#include <hwloc.h> Data Fields unsigned char set_thisproc_cpubind unsigned char get_thisproc_cpubind unsigned char set_proc_cpubind unsigned char get_proc_cpubind unsigned char set_thisthread_cpubind unsigned char get_thisthread_cpubind unsigned char set_thread_cpubind unsigned char get_thread_cpubind unsigned char get_thisproc_last_cpu_location unsigned char get_proc_last_cpu_location unsigned char get_thisthread_last_cpu_location Detailed Description Flags describing actual PU binding support for this topology. Field Documentation unsigned char hwloc_topology_cpubind_support::get_proc_cpubind Getting the binding of a whole given process is supported. unsigned char hwloc_topology_cpubind_support::get_proc_last_cpu_location Getting the last processors where a whole process ran is supported unsigned char hwloc_topology_cpubind_support::get_thisproc_cpubind Getting the binding of the whole current process is supported. unsigned char hwloc_topology_cpubind_support::get_thisproc_last_cpu_location Getting the last processors where the whole current process ran is supported unsigned char hwloc_topology_cpubind_support::get_thisthread_cpubind Getting the binding of the current thread only is supported. unsigned char hwloc_topology_cpubind_support::get_thisthread_last_cpu_location Getting the last processors where the current thread ran is supported unsigned char hwloc_topology_cpubind_support::get_thread_cpubind Getting the binding of a given thread only is supported. unsigned char hwloc_topology_cpubind_support::set_proc_cpubind Binding a whole given process is supported. unsigned char hwloc_topology_cpubind_support::set_thisproc_cpubind Binding the whole current process is supported. unsigned char hwloc_topology_cpubind_support::set_thisthread_cpubind Binding the current thread only is supported. unsigned char hwloc_topology_cpubind_support::set_thread_cpubind Binding a given thread only is supported. Author Generated automatically by Doxygen for Hardware Locality (hwloc) from the source code. Version 1.4.1 Mon Feb 27 2012 hwloc_topology_cpubind_support(3)
All times are GMT -4. The time now is 10:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy