Search Results

Search: Posts Made By: ssbsts
1,835
Posted By ssbsts
thanks Scrutinizer. your solution is perfect. ...
thanks Scrutinizer. your solution is perfect.

Franklin, the line just looks like /path/to/directory
1,835
Posted By ssbsts
Combining awk statements
I have a pretty simple script below:


#!/bin/sh

for i in *.cfg
do
temp=`awk '/^InputDirectory=/' ${i}`
input_dir=`echo ${temp} | awk '{ print substr( $0, 16) }'`
echo ${input_dir}
done
...
Showing results 1 to 2 of 2

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