Search Results

Search: Posts Made By: rfourn
5,699
Posted By rfourn
Help with exec command and file descriptors??
im having trouble with the comprehending the exec command and the use of file descriptors.
given:

#!/bin/sh

exec 4>&1
exec 1>&2
exec 2>&4
exec 4>&-

echo Hello

would the standard...
11,723
Posted By rfourn
Help with a shell script to concatenate lists together
Below is a description of what im trying to achieve:

Write a shell script to concatenate lists together, and output the resulting list. Do not include any argument that is a sub-list of the entire...
1,316
Posted By rfourn
Help with a script
I need help following this script:

#!/bin/sh
file=$1
shift
vi `grep -l "$file" "$@"`

when i run it i get nothing. does the 'shift' before the 'vi' command
remove the value of $1, thereby...
72,822
Posted By rfourn
UNIX command to reverese lower and upper case
im trying to find a command to
change all upper case to lower case and
all lower case to upper case.
for example:
file is 'RED sox'
need it changed to 'red SOX'

tried tr 'a-zA-Z' 'A-Za-z'...
Showing results 1 to 4 of 4

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