LoginSignup
0
0

More than 5 years have passed since last update.

atom

Posted at
package main

import (
    "fmt"
    "regexp"
    "strings"
)

func main() {
    var a string
//    var b byte
    for {
    fmt.Scan(&a)
    re := regexp.MustCompile(`[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}`)
    b := re.Find([]byte(a))
    c := strings.Replace(string(b), "\"", "", 2)
    if len(c) != 0{
        fmt.Printf("%q\n",c)
    }
    }
}

#!/bin/bash

while :
do
read file_name1
echo $file_name1
echo ${file_name1//'"'/}
touch $file_name1
echo "clreaed"
/home/ec2-user/log/sh $file_name
done


0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0