Share your articles about Unix | Windows | Networks | Virtualization | Storage
Posts tagged all-files
create overview biggest files
Aug 27th
Hi, Simple admin question: I have a fedora server and I want a list of all files and archives in the home dir order by smallest/biggest decending. Ls -al gives only an overview of the current directory.
More: create overview biggest files
Link to this post!recursive searching files in directory matching given name – taking care of links
Apr 16th
Hi, I am writing a shell script that finds all files named in a directory or any of its subdirectories, recursively.
See the original post: recursive searching files in directory matching given name – taking care of links
Link to this post!Help with renaming files
Mar 26th
Hi. Can someone tell me how to append an extension to all files in a folder
Follow this link: Help with renaming files
Link to this post![xubuntu] Copying Windows files by extension…
Mar 8th
Hey guys, I thought I posted this already, guess not! I want to search a Windows partition for all .doc and .xls files and move them over to Xubuntu to burn them to CD. Is this easiest to do via terminal?
See the original post: [xubuntu] Copying Windows files by extension…
Link to this post![ubuntu] Remove all files from directory except some
Jan 31st
Hi Guys, I am still a novice with Ubuntu and I am trying to write a shell script which will clean redundant files. I am stuck with one line where I would need a command which will remove all files from directory except some of them.
Read the original here: [ubuntu] Remove all files from directory except some
Link to this post!Bash script variables comparision
Jan 30th
Hi people! I would like to start by saying that I’m new to bash scripting! I’m trying to write a script that could list all files that have been modified today an that are bigger then 400k recursively from the location specified in the argument. I’m quite sure that the problem comes from the comparision of ($6 == $dat) Code: #!/bin/bash if [ -z $1 ] then echo “Enter a path: ” else [ -n $1 ] dat=`date +%F` path1=$1 file=”$(ls $path1 -lR | awk ‘{if(($5> 400)&&($6 == $dat))print $5 “kt” $6 “t” $8 “nvr”}’)” echo $file fi Please tell me More >