Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- total 40
- 36 -rwxrwxr-x 1 amit amit 36720 2012-03-31 12:19 1.txt
- 4 -rwxrwxr-x 1 amit amit 1318 2012-03-31 14:49 2.txt
- i=0
- ls -ls | while read line
- do
- array[ $i ]="$line"
- (( i++ ))
- done
- #! /bin/bash
- i=0
- while read line
- do
- array[ $i ]="$line"
- (( i++ ))
- done < <(ls -ls)
- echo ${array[1]}
- files=(*)
- OIFS=$IFS; IFS=$'n'; array=($(ls -ls)); IFS=$OIFS; echo "${array[1]}"
- files=($(find -E . -type f -regex "^.*$"))
- for item in ${files[*]}
- do
- printf " %sn" $item
- done
- IFS=' ' read -r -a array <<< $(ls /path/to/dir)
Add Comment
Please, Sign In to add comment