非常好的十道Linux shell脚本面试题1、编写个shell脚本将当前目录下大于10K的文件转移到/tmp目录下#/bin/sh#Programm :# Using for move currently directory to /tmpfor FileName in ls -l | awk $510240 print $9domv $FileName /tmpdonels -al /tmpecho Done! 2、编写shell脚本获取本机的网络地址。比如:本机的ip地址是:192.168.100.2/255.255.255.0,那么它的网络地址是192.168.100.1/255.255.255.0方法一:#!/bin/bash#This script print ip and networkfile=/etc/sysconfig/network-scripts/ifcfg-eth0if -f $file ;thenIP=grep IPADDR $file