小编mol*_*ath的帖子

一个选项在 bash 中没有看到参数(即变量),请帮忙?

#!/bin/bash

counter=2

while [ $counter -lt 19 ]
do



        username= head -n $counter ./user_sheet.csv | tail -n 1 | cut -d ';' -f1 
        psswd= head -n $counter ./user_sheet.csv | tail -n 1 | cut -d ';' -f2 
        full_name= head -n $counter ./user_sheet.csv | tail -n 1 | cut -d ';' -f3 
        group= head -n $counter ./user_sheet.csv | tail -n 1 | cut -d ';' -f4 
        second_group= head -n $counter ./user_sheet.csv | tail -n 1 | cut -d ';' -f5 

        sudo …
Run Code Online (Sandbox Code Playgroud)

command-line bash scripts

1
推荐指数
1
解决办法
162
查看次数

标签 统计

bash ×1

command-line ×1

scripts ×1