Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: RudiC
970
Posted By RudiC
for FN in *.out #...
for FN in *.out # cycle through ALL *.out files (you could narrow it down somewhat by using *account.out)
do H=${FN%%.*} # use...
970
Posted By RudiC
OK, multiple hostn files. Try for FN in *.out ...
OK, multiple hostn files. Try
for FN in *.out
do H=${FN%%.*}
if [ ! "$H" = "$OH" ]
then OH=$H
{
echo "host,accounts,max,pwd,standard"
...
970
Posted By RudiC
How about IFS=. read H REST <<EOF $(echo...
How about
IFS=. read H REST <<EOF
$(echo *.out)
EOF
echo "host,accounts,max,pwd,standard"; echo $H | paste -d, - *.out
host,accounts,max,pwd,standard
host1,root,9,abc pwd=,standard:
,user1,,, ...
Showing results 1 to 3 of 3

 

Featured Tech Videos

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