Search Results

Search: Posts Made By: sheikh76
8,676
Posted By pravin27
Add field seperater in awk as below awk -F, '{...
Add field seperater in awk as below
awk -F, '{ print $1 " - " $2,"GB" }' inputfile
8,676
Posted By Chubler_XL
Yes, my profile.csv was just like the one in your...
Yes, my profile.csv was just like the one in your post:

profile.csvMedia 894.45
Document 106.35
Picture 75.52
Archive 72.70
Database 0.06
5,982
Posted By danmero
#!/bin/bash Val= Name= while IFS="," read...
#!/bin/bash
Val=
Name=
while IFS="," read name val
do
if [ -z "$Name" ];
then
Name=\""$name"\"
else
Name=$Name,\""$name"\"
fi...
8,676
Posted By pravin27
If I have understood correctly,Try this ...
If I have understood correctly,Try this
#!/bin/sh

ls -lR | egrep ^- > test.txt
Type[1]='"\.avi\$|\.mov\$|\.mp3\$"'
LABEL[1]=Media

Type[2]='"\.doc\$|\.xls\$"'
LABEL[2]=Document
...
8,676
Posted By pravin27
How about this? ./myScripts.sh > $(date...
How about this?
./myScripts.sh > $(date '+%d%m%Y%H%M%S').csv
8,676
Posted By Chubler_XL
#!/bin/sh ls -lR | egrep ^- > test.txt ...
#!/bin/sh

ls -lR | egrep ^- > test.txt

Type[1]='"\.avi\$|\.mov\$"'
LABEL[1]=Media

Type[2]='"\.doc\$|\.xls\$"'
LABEL[2]=Document

for count in 1 2;
do
echo count $count
echo...
8,676
Posted By pravin27
Try this, #!/bin/sh ...
Try this,

#!/bin/sh

T[1]='"\.avi\$|\.mov\$"'
LABEL[1]=Media

T[2]='"\.doc\$|\.xls\$"'
LABEL[2]=Document

for count in 1 2;
do
echo count $count
echo ${LABEL[$count]},`eval...
Showing results 1 to 7 of 7

 
All times are GMT -4. The time now is 02:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy