Hi
I need to list files by their size and exclude those that match a certain size. With grep it is easy enough.
ll -rt | grep 2166 | awk '{print $9}'
2166 is the filesize and $9 the filenamefield.
What should I be looking for to use this in a C program? My aim is to cut the name... (2 Replies)
The following creates a needed awk command from some preexisting variables and stores it in the variable i. I then redirect it to a new file change the permission on the file and run it as a script.
How can I do a simple redirect on this variable to the command line, instead of creating a new... (8 Replies)
Hello friends,
I want a command to print the reult files from find command into a text file.:)
Iam looking from forum memebers. PLZ help me.ASAP
Thanks in Advance,
Siva Ranganath CH (5 Replies)
i have this script that reads a file "listall_101111" where 101111 varies.
awk '{print $0,$1}' listall_101111 | sed -e 's/\(.*\).$/\1/g' | awk '{print $6,$2,$3,$4,$5}' | sort -nrk5 | nawk 'NR==1{m=$5;a++;b=(b)?b:$0;next}$5==m{a++;b=(b)?b:$0}END{for (i in a){print b,a}}' | grep -v ^LG | sort... (4 Replies)
I have a script built that takes the standard inputs $1 $2 $3 after the name and parses some data.
hexsite=`echo "obase=16;$1"|bc`
hexfix=$(printf "%.3X" 0x$hexsite)
if || ;then
type=33
elif || ;then
type=59
elif ;then
type=99
else type=00
fi
cat /directory/*.2012$3*|
I am... (8 Replies)
I would like to redirect output of command line in for loop as $line.
Output should be processed as line but instead it throw whole output.
Could somebody help me on how to redirect output of command line and process it line by line without sending output to any file.
below is my code ... (1 Reply)
I'm using the below to get multiple input from USER and it is working, is there any better way in awk array single liner?
echo "Enter Multiple input (Ctrl+d to exit)"
>output
while read A
do
echo "$A" >>output
done (3 Replies)
Team ,
I am trying to write a case condition for database backups.But I am unable to make the script to read input from command line .
while true ;do
read -p "Do You Wish To Take Database Backup ?? " yn
case $yn in
*) echo " YES take backup ";;
*) echo " NO BACKUP " ;;
... (9 Replies)
Hi friends,
Need your help again to get a best approach for the below scenario.
I am previously having one shell script which accepts request_id/s as the command line argument.
single req_id arg= 1111
Multiple arg= 1111,2222,3333
which gets passed to the embedded sql inside to... (9 Replies)